Need help in hard data-structure problem!!!
Ladies and Gentlemen, please help me -> problem.
AtCoder Beginner G problems upsolving