Most socially-distanced subsequence

Problem Name:
Most socially-distanced subsequence
Site:CodeForces
Links:
Tags:
Problem setters: