Rosetta Problems

Graph Cut

https://atcoder.jp/contests/fuka5/tasks/fuka_graphcut