Kattis Set 12

Results

First to solve Solved Attempted Pending judgement