Lightsabers (medium)

Problem Name:
Lightsabers (medium)
Site:CodeForces
Links:
Tags:
Problem setters: