Cod sursa(job #638791)

Utilizator costin7856Antonesi Florean Costin costin7856 Data 21 noiembrie 2011 17:02:26
Problema ChatNoir Scor 100
Compilator cpp Status done
Runda Arhiva de probleme Marime 0.27 kb
#include<fstream>
using namespace std;
int m,n,x,y,i;
long t;
int main()
{
	ifstream f("chatnoir.in");
	ofstream g("chatnoir.out");
f>>t;
for(i=1;i<=t;i++)
{
f>>n>>m>>x>>y;
if (x<=5||y<=5||x>=n-4||y>=m-4)
g<<"DA"<<"\n";
else
	g<<"NU"<<"\n";
}
	return 0;
}