Блог пользователя TreeGroup

Автор TreeGroup, история, 2 года назад, По-английски

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!

  • Проголосовать: нравится
  • 0
  • Проголосовать: не нравится

»
2 года назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

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.