Cod sursa(job #638105)

Utilizator Athena99Anghel Anca Athena99 Data 20 noiembrie 2011 18:53:37
Problema ChatNoir Scor 100
Compilator cpp Status done
Runda .com 2011 Marime 0.35 kb
#include <stdio.h>

int main()
{
    int t=0,i=0,n=0,m=0,x=0,y=0;
    freopen("chatnoir.in","r",stdin);
    freopen("chatnoir.out","w",stdout);
    scanf("%d",&t);
    for (i=0; i<t; ++i)
    {
        scanf("%d%d%d%d",&n,&m,&x,&y);
        if (n-x<=4 || 5>=x || m-y<=4 || 5>=y) printf("DA\n");
        else printf("NU\n");
    }
    return 0;
}