Cod sursa(job #3363102)
| Utilizator | Data | 14 august 2026 09:27:19 | |
|---|---|---|---|
| Problema | ChatNoir | Scor | 0 |
| Compilator | cpp-64 | Status | done |
| Runda | Arhiva de probleme | Marime | 0.38 kb |
#include <fstream>
using namespace std;
ifstream fin ("chatnoir.in");
ofstream fout ("chatnoir.out");
int main()
{
int t;
fin >> t;
while (t--)
{
int n,m,x,y;
fin >> n >> m >> x >> y;
if (min(n-x,m-y)<=4)
{
fout << "DA" << '\n';
}
else
{
fout << "NU" << '\n';
}
}
return 0;
}