Cod sursa(job #636951)

Utilizator VmanDuta Vlad Vman Data 20 noiembrie 2011 04:42:42
Problema ChatNoir Scor 100
Compilator cpp Status done
Runda .com 2011 Marime 0.4 kb
//sursa bagasta beat fiind
#include <cstdio>

int T, N, M, x, y;

int main()
{
    freopen("chatnoir.in","r",stdin);
    freopen("chatnoir.out","w",stdout);
    
    scanf("%d", &T);
    while (T--)
    {
          scanf("%d %d %d %d", &N, &M, &x, &y);
          if (x >= 6 && y >= 6 && x+5 <= N && y+5 <= M) printf("NU\n");
             else printf("DA\n");
    }
    
    return 0;   
}