Potion(hard version)

Problem Name:
Potion(hard version)
Site:CodeForces
Links:
Tags: