Viktoria and resentments

Problem Name:
Viktoria and resentments
Site:CodeForces
Links:
Tags:
Problem setters: