Rosetta Problems

テント (Tents)

https://atcoder.jp/contests/joisc2018/tasks/joisc2018_c