Cod sursa(job #963587)
Utilizator | Data | 17 iunie 2013 20:25:55 | |
---|---|---|---|
Problema | ChatNoir | Scor | 100 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.35 kb |
#include <fstream>
#include <iostream>
using namespace std;
int main()
{
int i, n, a, b, c, d;
ifstream f("chatnoir.in");
ofstream g("chatnoir.out");
f>>n;
for(i=1; i<=n; i++)
{
f >> a >> b >> c >> d;
if(c<=5 || d<=5 || a-c<=4 || b-d<=4) g <<"DA\n";
else g <<"NU\n";
}
return 0;
}