Cod sursa(job #2440211)
Utilizator | Data | 17 iulie 2019 21:38:30 | |
---|---|---|---|
Problema | ChatNoir | Scor | 100 |
Compilator | cpp-64 | Status | done |
Runda | Arhiva de probleme | Marime | 0.37 kb |
#include <bits/stdc++.h>
using namespace std;
ifstream in("chatnoir.in");
ofstream out("chatnoir.out");
int t,n,m,x,y;
int main()
{
in>>t;
for(int i=1;i<=t;i++)
{
in>>n>>m>>x>>y;
if(x-1<=4||n-x<=4||m-y<=4||y-1<=4){
out<<"DA";
}
else
out<<"NU";
out<<'\n';
}
return 0;
}