Cod sursa(job #2776966)

Utilizator BlueLuca888Girbovan Robert Luca BlueLuca888 Data 21 septembrie 2021 18:41:52
Problema ChatNoir Scor 100
Compilator cpp-64 Status done
Runda Arhiva de probleme Marime 0.37 kb
#include <bits/stdc++.h>

using namespace std;

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

int teste;
int n, m, x, y;

int main (){
    fin>>teste;
    while(teste--){
        fin>>n>>m>>x>>y;
        if(n-x > 4 && x-1 > 4 && m-y > 4 && y-1 > 4)
            fout<<"NU\n";
        else
            fout<<"DA\n";
    }
    return 0;
}