Rosetta Problems

1D Matching

https://atcoder.jp/contests/cf16-exhibition-final/tasks/cf16_exhibition_final_a