Cod sursa(job #2885860)

Utilizator euyoTukanul euyo Data 6 aprilie 2022 18:06:58
Problema ChatNoir Scor 0
Compilator cpp-64 Status done
Runda Arhiva de probleme Marime 0.32 kb
#include <fstream>

using namespace std;

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

int main() {
  int t, n, m, x, y;

  fin >> t;
  while ( t-- ) {
	fin >> n >> m >> x >> y;
    fout << ((x < 4 || y < 4 || y > m - 3 || x > n - 3) ? "DA" : "NU") << "\n"; 
  }
  fin.close();
  fout.close();
  return 0;
}