Cod sursa(job #980863)

Utilizator sleepaholicNeculaescu Theodor sleepaholic Data 5 august 2013 19:33:09
Problema ChatNoir Scor 100
Compilator cpp Status done
Runda Arhiva de probleme Marime 0.33 kb
#include <fstream>

using namespace std;

ifstream fin("chatnoir.in");
ofstream fout("chatnoir.out");

int main()
{
    int t, n, m, x, y, i;
    fin>>t;
    for(i=1; i<=t; i++)
    {
        fin>>n>>m>>x>>y;
        if(x<=5 || y<=5 || n-x<=4 || m-y<=4) fout<<"DA\n";
        else fout<<"NU\n";
    }
    return 0;
}