help in solving a bfs problem

Revision en1, by Batman_love_dp, 2021-11-01 23:08:20

hello everyone i am trying to practice bfs and solving this problem https://codeforces.com/contest/59/problem/E but i don't have any idea how can i modify the bfs so i can keep track of banned trips can anyone help me ? thats the code: https://ideone.com/tJ0Sqw sorry its a little messy but thats how newbies write codes anyway

Tags bfs

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English Batman_love_dp 2021-11-01 23:08:20 362 Initial revision (published)