Cod sursa(job #641199)
| Utilizator | Data | 27 noiembrie 2011 15:32:35 | |
|---|---|---|---|
| Problema | ChatNoir | Scor | 100 |
| Compilator | cpp | Status | done |
| Runda | Arhiva de probleme | Marime | 0.39 kb |
#include <cstdio>
#include <iostream>
using namespace std;
int main()
{
int m,n,l,c,t,i;
freopen("chatnoir.in","r", stdin);
freopen("chatnoir.out","w", stdout);
scanf("%d",&t);
for(i=1;i<=t;i++)
{
scanf("%d %d %d %d\n",&n,&m,&l,&c);
//<<n<<" "<<m<<" "<<l<<" "<<c<<endl;
if(n-l<=4 || m-c<=4 || l<6 || c<6 ) cout<<"DA\n";
else cout<<"NU\n";
}
return 0;
}
