Cod sursa(job #636091)
| Utilizator | Data | 19 noiembrie 2011 16:59:25 | |
|---|---|---|---|
| Problema | ChatNoir | Scor | 0 |
| Compilator | cpp | Status | done |
| Runda | .com 2011 | Marime | 0.39 kb |
#include <algorithm>
#include <iostream>
#include <fstream>
using namespace std;
int main()
{
ifstream cin("chatnoir.in");
ofstream cout("chatnoir.out");
int testCases;
for (cin >> testCases; testCases; testCases--)
{
int n, m, x, y;
cin >> n >> m >> x >> y;
if (x < 5 || y < 5 || x > n - 4 || y > m - 4)
cout << "DA\n";
else cout << "NU\n";
}
return 0;
}
