The Man who became a God

Problem Name:
The Man who became a God
Site:CodeForces
Links:
Tags:
Problem setters: