Rosetta Problems

Shortest Path with Restoration

https://atcoder.jp/contests/tessoku-book/tasks/tessoku_book_ek