Rosetta Problems

志なかばで死んだ勇者の名は…

https://atcoder.jp/contests/yuha-c88/tasks/yuha_c88_g