Cod sursa(job #2239978)
Utilizator | Data | 12 septembrie 2018 09:13:23 | |
---|---|---|---|
Problema | ChatNoir | Scor | 0 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.37 kb |
#include <fstream>
using namespace std;
ifstream cin("chatnoir.in");
ofstream cout("chatnoir.out");
int main()
{
int n1,n,m,x,y;
cin>>n1;
for(int i=0; i<n1; i++){
cin>>n>>m>>x>>y;
if(x<=4||n-x<=4||m-y<=4||y<=4){
cout<<"DA";
}
else
cout<<"NU";
cout<<endl;
}
return 0;
}