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