Cod sursa(job #2779921)
Utilizator | Data | 5 octombrie 2021 14:53:08 | |
---|---|---|---|
Problema | ChatNoir | Scor | 0 |
Compilator | cpp-64 | Status | done |
Runda | Arhiva de probleme | Marime | 0.34 kb |
#include <fstream>
using namespace std;
ifstream fin ("chatnoir.in");
ofstream fout ("chatnoir.out");
int main(){
int n, m, l, c;
int t;
fin >> t;
while (t --){
fin >> n >> m >> l >> c;
if (l + 4 >= n || y + 4 >= m || x - 4 <= 1 || y - 4 <= 1)
fout << "DA\n";
else
fout << "NU\n";
}
return 0;
}