Rosetta Problems

Graph Smoothing

https://atcoder.jp/contests/abc199/tasks/abc199_f