Cod sursa(job #777278)
Utilizator | Data | 11 august 2012 19:14:55 | |
---|---|---|---|
Problema | ChatNoir | Scor | 100 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.41 kb |
#include <cstdio>
#include <cstdlib>
using namespace std;
int main()
{
freopen("chatnoir.in", "r", stdin);
freopen("chatnoir.out", "w", stdout);
int T, N, M, X, Y;
scanf("%i", &T);
while(T --)
{
scanf("%i %i %i %i", &N, &M, &X, &Y);
if(X <= 5 || Y <= 5 || X >= N - 4 || Y >= M - 4) printf("DA\n");
else printf("NU\n");
}
return 0;
}