Cod sursa(job #638809)
| Utilizator | Data | 21 noiembrie 2011 17:22:24 | |
|---|---|---|---|
| Problema | ChatNoir | Scor | 0 |
| 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<=t||y<=t||x>=n-4||y>=m-4)
g<<"DA"<<"\n";
else
g<<"NU"<<"\n";
}
return 0;
}
