Cod sursa(job #636949)

Utilizator VmanDuta Vlad Vman Data 20 noiembrie 2011 04:37:22
Problema ChatNoir Scor 0
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 && N-x >= 6 && M-y >= 6) printf("NU\n");
             else printf("DA\n");
    }
    
    return 0;   
}