Cod sursa(job #638085)

Utilizator elfusFlorin Chirica elfus Data 20 noiembrie 2011 18:47:35
Problema ChatNoir Scor 0
Compilator cpp Status done
Runda .com 2011 Marime 0.4 kb
#include <stdio.h>

int main ()
{
    int Q, N, M, x, y;

    freopen ("chatnoir.in", "r", stdin);
    freopen ("chatnoir.out", "w", stdout);

    scanf ("%d", &Q);
    while (Q --)
    {
        scanf ("%d%d%d%d", &N, &M, &x, &y);
        if (x <= 3 || y <= 3 || N - 2 <= x || M - 2 <= y)
            printf ("DA\n");
        else
            printf ("NU\n");
    }

    return 0;
}