Cod sursa(job #728510)
Utilizator | Data | 28 martie 2012 19:26:00 | |
---|---|---|---|
Problema | ChatNoir | Scor | 100 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.29 kb |
#include<fstream>
using namespace std;
ofstream out("chatnoir.out");
int main()
{
ifstream in("chatnoir.in");
int t,n,m,x,y;
in>>t;
for(int i=1;i<=t;i++)
{
in>>n>>m>>x>>y;
if(x<=5||y<=5||x>n-5||y>m-5)
out<<"DA"<<'\n';
else
out<<"NU"<<'\n';
}
return 0;
}