Cod sursa(job #680569)
Utilizator | Data | 15 februarie 2012 19:10:08 | |
---|---|---|---|
Problema | ChatNoir | Scor | 100 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.43 kb |
#include <iostream>
#include <stdio.h>
using namespace std;
const int nr = 6;
int main()
{
freopen ("chatnoir.in", "r", stdin);
freopen ("chatnoir.out", "w", stdout);
int T, N, M, X, Y;
scanf("%d", &T);
while(T--)
{
scanf("%d %d %d %d", &N, &M, &X, &Y);
if(X < nr or N - X + 1 < nr or Y < nr or M - Y + 1 < nr)
printf("DA\n");
else printf("NU\n");
}
return 0;
}