Cod sursa(job #1253435)
Utilizator | Moise Alexandru moise_alexandru | Data | 1 noiembrie 2014 12:22:06 |
---|---|---|---|
Problema | ChatNoir | Scor | 100 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.37 kb |
#include <fstream>
using namespace std;
ifstream in("chatnoir.in");
ofstream out("chatnoir.out");
int main()
{
int x;
in>>x;
for(int i=1;i<=x;i++)
{
int n,m,l,c;
in>>n>>m>>l>>c;
if(l<=5 || c<=5 || l>=n-4 || c>=m-4)
out<<"DA";
else
out<<"NU";
out<<"\n";
}
return 0;
}