Cod sursa(job #635341)
Utilizator | Data | 19 noiembrie 2011 10:35:16 | |
---|---|---|---|
Problema | ChatNoir | Scor | 0 |
Compilator | cpp | Status | done |
Runda | .com 2011 | Marime | 0.39 kb |
#include<fstream>
using namespace std;
int main(void){
ifstream fin("chatnoir.in");
ofstream fout("chatnoir.out");
int t,n,m,x,y;
fin>>t;
while(t--){
fin>>n>>m>>x>>y;
if(x<6 || y<6 || n-x<6 || m-y<6)fout<<"Da"<<'\n';
else fout<<"Nu"<<'\n';
}
fin.close(); fout.close();
return 0;
}