Cod sursa(job #639674)
Utilizator | Data | 23 noiembrie 2011 19:18:30 | |
---|---|---|---|
Problema | ChatNoir | Scor | 100 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.26 kb |
#include<fstream>
using namespace std;
int n,m,y,x,t;
int main()
{
ifstream f("chatnoir.in");
ofstream g("chatnoir.out");
f>>t;
while(t--)
{
f>>n>>m>>x>>y;
if(x<=5||y<=5||x>=n-4||y>=m-4)
g<<"DA"<<"\n";
else
g<<"NU"<<"\n";
}
return 0;
}