The closest subsequence

Problem Name:
The closest subsequence
Site:CodeForces
Links:
Tags:
Problem setters: