Cod sursa(job #2087019)

Utilizator stefdascalescuStefan Dascalescu stefdascalescu Data 12 decembrie 2017 19:54:08
Problema ChatNoir Scor 0
Compilator cpp Status done
Runda Arhiva de probleme Marime 0.34 kb
#include<bits/stdc++.h>
using namespace std;
ifstream f("chatnoir.in");
ofstream g("chatnoir.out");
int t;
int n,m,c1,c2;
int main()
{
    f>>t;
    for(;t;--t)
    {
        f>>n>>m>>c1>>c2;
        if(c2<=4 || m-c2<=4 || c1<=4 || n-c1<=4)
            g<<"DA"<<'\n';
        else
            g<<"NU"<<'\n';
    }
    return 0;
}