Cod sursa(job #657746)
Utilizator | Data | 7 ianuarie 2012 12:39:38 | |
---|---|---|---|
Problema | ChatNoir | Scor | 100 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.3 kb |
#include<stdio.h>
int a,n,m,x,y;
int main()
{
freopen("chatnoir.in","r",stdin);
freopen("chatnoir.out","w",stdout);
scanf("%d",&a);
while(a)
{
a--;
scanf("%d%d%d%d",&n,&m,&x,&y);
if(x-1<=4 || y-1<=4 || n-4<=x || m-4<=y) printf("DA\n");
else printf("NU\n");
}
return 0;
}