MEX vs MED

Problem Name:
MEX vs MED
Site:CodeForces
Links:
Tags:
Problem setters: