Cod sursa(job #635653)

Utilizator AndreiRSStatescu Andrei Rares AndreiRS Data 19 noiembrie 2011 13:53:26
Problema ChatNoir Scor 100
Compilator cpp Status done
Runda .com 2011 Marime 0.31 kb
#include <fstream>
using namespace std;

ifstream fi ("chatnoir.in");
ofstream fo ("chatnoir.out");

int main ()
{
	int t, n, m, x, y;
	
	fi >> t;
	while (t--)
	{
		fi >> n >> m >> x >> y;
		if (x > 5 && x < n-4 && y > 5 && y < m-4)
			fo << "NU\n";
		else
			fo << "DA\n";
	}
	
	return 0;
}