Descriptions:

Playlist for Polycarp (hard version)

CodeForces - 1185G2