Fluctuations of Mana

Problem Name:
Fluctuations of Mana
Site:CodeForces
Links:
Tags: