getting TLE in problem on MO'S algo

Revision en1, by brucewayne123, 2016-07-10 07:34:23

problem link:- i have used mo's algorithm and my complexity fits in given time limit.. but still i am getting TLE on test 5.. please help.. my submission:-


  Rev. Lang. By When Δ Comment
en1 English brucewayne123 2016-07-10 07:34:23 293 Initial revision (published)