Cod sursa(job #635892)
Utilizator | Data | 19 noiembrie 2011 15:28:14 | |
---|---|---|---|
Problema | ChatNoir | Scor | 0 |
Compilator | cpp | Status | done |
Runda | .com 2011 | Marime | 0.32 kb |
#include<fstream>
using namespace std;
long n,m,x,y,t;
int main()
{
ifstream in("chatnoir.in");
ofstream out("chatnoir.out");
in>>t;
for ( ; t; --t)
{
in>>n>>m>>x>>y;
if ( x<=4 || y<=4 || x>=n-3 || y>=m-3)
out<<"DA\n";
else
out<<"NU\n";
}
return 0;
}