Funicular Frenzy

Problem Name:
Funicular Frenzy
Site:CodeForces
Links:
Tags: