[ create a new paste ] login | about

Link: http://codepad.org/k8pYHeyu    [ raw code | fork ]

C++, pasted on Mar 23:
#include <iostream>

int main()
{


	int nQueries, xDivisionPoint, yDivisionPoint, x, y;
	std::cin >> nQueries >> xDivisionPoint >> yDivisionPoint;
	while (nQueries != 0){
		int i = 0;
		for (; i <= nQueries; i++)
		{
			std::cin >> x >> y;
			if (x == xDivisionPoint || y == yDivisionPoint){
				printf("divisa");
				continue;
			}
			else if (x < xDivisionPoint){
				if (y < yDivisionPoint)
					printf("SE");
				else
					printf("NE");
			}
			else {
				if (y < yDivisionPoint)
					printf("SE");
				else
					printf("NE");
			}
		}
		std::cin >> nQueries >> xDivisionPoint >> yDivisionPoint;
	}
	return 0;
}


Output:
No errors or program output.


Create a new paste based on this one


Comments: