Colorful Stones (Simplified Edition)

Problem Name:
Colorful Stones (Simplified Edition)
Site:CodeForces
Links:
Tags:
Problem setters: