Cod sursa(job #759841)
Utilizator | Data | 19 iunie 2012 16:32:28 | |
---|---|---|---|
Problema | ChatNoir | Scor | 0 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.33 kb |
#include<fstream>
using namespace std;
int t, n, m, x, y;
int main()
{
ifstream in("chatnoir.in");
ofstream out("chatnoir.out");
in>>t;
while(t--)
{
in>>n>>m>>x>>y;
if(x<=5||y<=5||x>=n-4||y>=m-4)
out<<"DA"<<endl;
else
out<<"NU"<<endl;
}
out.close();
return 0;
}