Cod sursa(job #638581)
Utilizator | Data | 20 noiembrie 2011 23:13:49 | |
---|---|---|---|
Problema | ChatNoir | Scor | 0 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.26 kb |
#include<fstream>
using namespace std;
int n,m,x,y,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||n-x<=5||m-y<=5)
g<<"DA\n";
else
g<<"NU\n";
}
return 0;
}