• + 1 comment

    Can someone please put an editorial to this problem? I have seen the successful submissions's code, but it is hard to understand. Was any math formula used in solving this problem?