Пожалуйста, прочтите новое правило об ограничении использования AI-инструментов. ×

Hamiltonian wall's potentially wrong solution got accepted
Разница между en2 и en3, 38 символ(ов) изменены
The problem in question is [Hamiltonian wall](https://codeforces.net/problemset/problem/1766/C) and I wrote a solution to this that works, but I suspect that it is the wrong solution. My solution is [this](https://codeforces.net/contest/1766/submission/198643038). The reason I suspect that my solution is incorrect is because, if in the DFS function I change the order of the two loops, I get the wrong answer(when that should not be happening). I would really appreciate if anybody could point out what is wrong with DFS function.↵

Thanks, if you need any clarification regarding some of the terms in my template or regarding my approach, feel free to comment down below

EDIT: I removed the lengthy template

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en3 Английский Flvx 2023-03-22 18:36:55 38 Tiny change: 'down below' -> 'down below\nEDIT: I removed the lengthy template'
en2 Английский Flvx 2023-03-22 18:36:25 6 Tiny change: 'ssion/198635041). The rea' -> 'ssion/198643038). The rea'
en1 Английский Flvx 2023-03-22 17:34:19 732 Initial revision (published)