Cod sursa(job #2087021)

Utilizator stefdascalescuStefan Dascalescu stefdascalescu Data 12 decembrie 2017 19:54:45
Problema ChatNoir Scor 100
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<=5 || m-c2<=4 || c1<=5 || n-c1<=4)
            g<<"DA"<<'\n';
        else
            g<<"NU"<<'\n';
    }
    return 0;
}