Cod sursa(job #1608964)
Utilizator | Data | 22 februarie 2016 14:47:04 | |
---|---|---|---|
Problema | ChatNoir | Scor | 100 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.31 kb |
#include <iostream>
#include <fstream>
using namespace std;
ifstream si("chatnoir.in");
ofstream so("chatnoir.out");
int main()
{
int q,n,m,x,y;
si>>q;
while(q--)
{
si>>n>>m>>x>>y;
if(x>5&&y>5&&x<n-4&&y<m-4) so<<"NU\n";
else so<<"DA\n";
}
return 0;
}