Cod sursa(job #641963)
Utilizator | Data | 30 noiembrie 2011 05:30:33 | |
---|---|---|---|
Problema | ChatNoir | Scor | 100 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.34 kb |
#include<cstdio>
int n,m,x,y;
void test()
{
scanf("%d%d%d%d",&n,&m,&x,&y);
if((x<=5)||(x>=n-4)||(y<=5)||(y>=m-4))
printf("DA\n");
else printf("NU\n");
}
int main()
{
int t,tt;
freopen("chatnoir.in","r",stdin);
freopen("chatnoir.out","w",stdout);
scanf("%d",&t);
for(tt=1;tt<=t;tt++)
test();
return 0;
}