Cod sursa(job #735745)
Utilizator | cristescu liviu ms-ninja | Data | 17 aprilie 2012 10:43:01 |
---|---|---|---|
Problema | ChatNoir | Scor | 100 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.37 kb |
#include <cstdio>
using namespace std;
int t, n, m, x, y;
int main()
{
freopen("chatnoir.in", "r", stdin);
freopen("chatnoir.out", "w", stdout);
scanf("%d", &t);
while(t--)
{
scanf("%d%d%d%d", &n, &m, &x, &y);
if(x<=5 || y<=5 || x>=n-4 || y>=m-4)
printf("DA\n");
else
printf("NU\n");
}
return 0;
}