Cod sursa(job #639531)
Utilizator | Data | 23 noiembrie 2011 14:14:08 | |
---|---|---|---|
Problema | ChatNoir | Scor | 0 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.27 kb |
#include <fstream>
using namespace std;
ifstream f("chatnoir.in");
ofstream g("chatnoir.out");
int i,n,m,x,y;
int main ()
{
f>>n;
for (i=1;i<=n;i++)
{
f>>n>>m>>x>>y;
if (x<=5 || y<=5 || n-x<=4 || m-y<=4) g<<"DA"<<'\n'; else g<<"NU"<<'\n';
}
return 0;
}