Following is my code from Codeforces Round #275 for the Question Interesting Arrays(http://codeforces.me/contest/482/problem/B)
It passed all pretest but during system testing, it gave a runtime error on pretest 28. The input was big and so it is not completely visible in the checker log. I tried to debug and tried many random testcases but I am unable to figure out the cause of runtime error.
If anyone is able to figure out the reason please tell me. Or even a testcase on which runtime error is given would do much help. Thanks.
Link to your accepted solution -> 8428987
thanks got it :)