Menu

ACMP 330. Телепортация

January 31, 2017 - acmp.ru

Language: C++

#include <fstream>
main()
{
	std::ifstream i("input.txt");
	std::ofstream o("output.txt");
	int a, b, c, d;
	i >> a >> b >> c >> d;
	abs(c-a) == abs(d-b)?o<<1:
	(a+b)%2==(c+d)%2?o<<2:o<<0;
}

(135)

It's only fair to share...Share on FacebookShare on Google+Tweet about this on TwitterShare on LinkedInShare on VK

Author of this post : UnknownA AuthorA

Leave a Reply

Your email address will not be published. Required fields are marked *