Cod sursa(job #638449)
Utilizator | Data | 20 noiembrie 2011 21:23:46 | |
---|---|---|---|
Problema | ChatNoir | Scor | 100 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.3 kb |
#include<iostream>
#include<fstream>
using namespace std;
int main(void)
{
int t,n,m,x,y,min;
fstream f,g;
f.open("chatnoir.in",ios::in);
g.open("chatnoir.out",ios::out);
f>>t;
while (t--)
{
f>>n>>m>>x>>y;
if (x<6 || y<6 || n-x+1<6 || m-y+1<6)
g<<"DA\n";
else
g<<"NU\n";
}
}