Cod sursa(job #923136)

Utilizator assa98Andrei Stanciu assa98 Data 23 martie 2013 11:56:01
Problema ChatNoir Scor 100
Compilator cpp Status done
Runda Arhiva de probleme Marime 0.37 kb
#include <cstdio>
using namespace std;

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

    int t;
    for(scanf("%d",&t);t;t--)
    {
        int n,m,x,y;
        scanf("%d%d%d%d",&n,&m,&x,&y);
        if(x<=5||y<=5||x>=n-4||y>=m-4)
            printf("DA\n");
        else
            printf("NU\n");
    }
    return 0;
}