Cod sursa(job #636947)

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