MEXimize the Score

Problem Name:
MEXimize the Score
Site:CodeForces
Links:
Tags: