Cod sursa(job #3363097)
| Utilizator | Data | 14 august 2026 09:26:35 | |
|---|---|---|---|
| Problema | ChatNoir | Scor | 0 |
| Compilator | cpp-64 | Status | done |
| Runda | Arhiva de probleme | Marime | 0.34 kb |
#include <iostream>
#include <fstream>
using namespace std;
#ifdef LOCAL
#define fin cin
#define fout cout
#else
ifstream fin("chatnoir.in");
ofstream fout("chatnoir.out");
#endif
int main() {
int t, n, m, x, y;
fin >> t;
while (t--) {
fin >> n >> m >> x >> y;
fout << ((min(min(x, n - x), min(y, m - y)) <= 4) ? "DA" : "NU") << '\n';
}
}
