Cod sursa(job #2229622)
Utilizator | Data | 7 august 2018 17:24:41 | |
---|---|---|---|
Problema | ChatNoir | Scor | 0 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.41 kb |
#include <bits/stdc++.h>
using namespace std;
ifstream in("chatnoir.in");
ofstream out("chatnoir.out");
int main()
{
int n;
in >> n;
for(int i = 1; i <= n; i++)
{
int a, b, c, d;
in >> a >> b >> c >> d;
if(a - c + 1 <= 5 || b - d + 1 <= 5 || c <= 5 || d< = 5)
out << "DA" << '\n';
else
out << "NU" << '\n';
}
return 0;
}