Rosetta Problems

Spread of Rumors

https://atcoder.jp/contests/awc0122/tasks/awc0122_a