Cod sursa(job #638810)
Utilizator | Data | 21 noiembrie 2011 17:23:15 | |
---|---|---|---|
Problema | ChatNoir | Scor | 100 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.28 kb |
#include<fstream>
using namespace std;
int m,n,x,y,i;
long 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;
}