Cod sursa(job #638590)
Utilizator | Data | 20 noiembrie 2011 23:16:34 | |
---|---|---|---|
Problema | ChatNoir | Scor | 100 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.27 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+1<=5||m-y+1<=5)
g<<"DA\n";
else
g<<"NU\n";
}
return 0;
}