Cod sursa(job #635898)
| Utilizator | Data | 19 noiembrie 2011 15:29:54 | |
|---|---|---|---|
| Problema | ChatNoir | Scor | 100 |
| 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<=5 || y<=5 || x>=n-4 || y>=m-4)
out<<"DA\n";
else
out<<"NU\n";
}
return 0;
}
