Cod sursa(job #954637)
| Utilizator | Data | 29 mai 2013 19:03:36 | |
|---|---|---|---|
| Problema | ChatNoir | Scor | 100 |
| Compilator | cpp | Status | done |
| Runda | Arhiva de probleme | Marime | 0.31 kb |
#include<fstream>
using namespace std;
ifstream f("chatnoir.in");
ofstream g("chatnoir.out");
int t, n, m, x, y;
int main()
{
f>>t;
while(t)
{
t--;
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;
}
