Help in dfs problem Kefa and Park

Правка en2, от kanisht_09, 2020-10-01 23:23:21

I am unable to figure out which test case I m missing. Need help although I have solved it using bfs but wanted to master dfs as well.I am a beginner in graphs. Thanks in advance :) .

https://mirror.codeforces.com/contest/580/submission/94433974

given above is the submission link .

Теги #dfs and similar, #help

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский kanisht_09 2020-10-01 23:23:21 13
en1 Английский kanisht_09 2020-10-01 23:22:14 331 Initial revision (published)