Cod sursa(job #641198)
| Utilizator | Data | 27 noiembrie 2011 15:29:55 | |
|---|---|---|---|
| Problema | ChatNoir | Scor | 0 |
| Compilator | cpp | Status | done |
| Runda | Arhiva de probleme | Marime | 0.38 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<6 || m-c<6 || l<6 || c<6 ) cout<<"DA\n";
else cout<<"NU\n";
}
return 0;
}
