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