Rosetta Problems

Counting Peaks of Infection

https://onlinejudge.u-aizu.ac.jp/problems/1656