Cod sursa(job #2780000)

Utilizator Luca_Miscocilucainfoarena Luca_Miscoci Data 5 octombrie 2021 18:37:46
Problema ChatNoir Scor 100
Compilator cpp-64 Status done
Runda Arhiva de probleme Marime 0.34 kb
#include <fstream>

using namespace std;
ifstream fin ("chatnoir.in");
ofstream fout ("chatnoir.out");
int main(){
  int n, m, l, c;
  int t;
  fin >> t;
  while (t --){
    fin >> n >> m >> l >> c;
    if (l + 4 >= n || c + 4 >= m || l - 4 <= 1 || c - 4 <= 1)
      fout << "DA\n";
    else
      fout << "NU\n";
  }
  return 0;
}