Rosetta Problems

誘拐 (Abduction)

https://atcoder.jp/contests/joisc2009/tasks/joisc2009_abduction