Rosetta Problems

スパイ (Spy)

https://atcoder.jp/contests/joisc2013-day2/tasks/joisc2013_spy