Cod sursa(job #2239979)
Utilizator | Data | 12 septembrie 2018 09:15:49 | |
---|---|---|---|
Problema | ChatNoir | Scor | 0 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.37 kb |
#include <fstream>
using namespace std;
ifstream fin("chatnoir.in");
ofstream fout("chatnoir.out");
int main()
{
int n1,n,m,x,y;
fin>>n1;
for(int i=0; i<n1; i++){
fin>>n>>m>>x>>y;
if(x<=4||n-x<=4||m-y<=4||y<=4){
fout<<"DA";
}
else
fout<<"NU";
fout<<\n;
}
return 0;
}