Need help in CSES Counting Rooms. (DFS is not working)

Revision en2, by ChairMan, 2021-09-06 17:09:38

Hi, so i've been trying to solve this problems with dfs, but it still gives me TLE and RE. Could someone please tell me what's wrong with my code ? My code

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English ChairMan 2021-09-06 17:09:38 21
en1 English ChairMan 2021-09-06 16:26:20 221 Initial revision (published)