Cod sursa(job #657733)
Utilizator | Data | 7 ianuarie 2012 12:17:30 | |
---|---|---|---|
Problema | ChatNoir | Scor | 0 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.28 kb |
#include<fstream>
using namespace std;
ifstream f("chatnoir.in");
ofstream g("chatnoir.out");
int n,a,b,c,d;
int main()
{
f>>n;
int i;
for(i=1;i<=n;i++)
{
f>>a>>b>>c>>d;
if(c<=4 || d<=4 || a-c<=4 || b-d<=4) g<<"DA"<<endl;
else g<<"NU"<<endl;
}
return 0;
}