TreeGroup's blog

By TreeGroup, history, 3 years ago, In English

Problem : https://atcoder.jp/contests/abc246/tasks/abc246_e

My submission : https://atcoder.jp/contests/abc246/submissions/30677792

I can't find where my BFS is wrong now.

Can you guys help me out, thank you very much!

  • Vote: I like it
  • 0
  • Vote: I do not like it

»
3 years ago, # |
  Vote: I like it 0 Vote: I do not like it

you can change your code to this: https://atcoder.jp/contests/abc246/submissions/30678903
I changed the state the mp in order to store the minimum move of each position with different previous move.