Rosetta Problems

Signal Attenuation

https://atcoder.jp/contests/awc0043/tasks/awc0043_a