Rosetta Problems

Purse Seine Fishing

https://atcoder.jp/contests/ahc039/tasks/ahc039_a