Cod sursa(job #657743)

Utilizator DEYDEY2Tudorica Andrei DEYDEY2 Data 7 ianuarie 2012 12:32:11
Problema ChatNoir Scor 0
Compilator cpp Status done
Runda Arhiva de probleme Marime 0.28 kb
#include<fstream>
using namespace std;
ifstream f("chatnoir.in");
ofstream g("chatnoir.out");
int a,n,m,x,y;
int main()
{
	f>>a;
	int i;
	for(i=1;i<=a;i++)
	{
		f>>n>>m>>x>>y;
		if(x-1<=4 || y-1<=4 || n-4<=x || m-4<=y) g<<"DA"<<endl;
		else g<<"NU"<<endl;
	}
	return 0;
}