Cod sursa(job #639654)
Utilizator | Data | 23 noiembrie 2011 18:46:34 | |
---|---|---|---|
Problema | ChatNoir | Scor | 100 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.28 kb |
#include<stdio.h>
int i,m,n,x,y;
int main()
{
freopen("chatnoir.in","r",stdin);
freopen("chatnoir.out","w",stdout);
scanf("%d",&i);
while(i)
{
scanf("%d%d%d%d",&n,&m,&x,&y);
if(x<6||x>n-5||y<6|| y>m-5) printf("DA\n");
else printf("NU\n");
--i;
}
return 0;
}