problems from your contests are always impressive and something from which I can learn. Thank you for organizing the contest in such hard times and hoping for the same experience as previous
Friendly reminder that the contest will start in 20 mins.
Good luck to all participants!
is this rated?
No, it’s an unrated contest.
okk thanks will participate
Can anyone tell me the case where my code fails. CodeChef: Practical coding for everyone
i have checked all the cases it is working fine but still i got wa.
@rkr_725, please give a test case for REC15C where my code is failing. I have tried many cases with solutions but all are coming out to be correct.
Here is my submission: CodeChef: Practical coding for everyone
You didn’t read the question properly. All the values were distinct.
ohh,Yes u r right,It’s my mistake 
It’s wrong for large test cases. For example the correct output for 998005893107997600 is 3400.
consider this test case
2
7
1 0 8
1 3 4
4 3 4
1 5 6
1 1 2
3 5 6
7 3 5
5
1 0 8
7 3 6
8 1 6
1 6 7
6 1 5
your code is giving
22
45
but the original output is
22
43
once run only second test case with your code it is also giving 43
(may be you missed to reinitialize something)
Consider the test case 998005893107997600 for which the correct output is 3400.
Never use sqrt() when N \leq 10^{18}. Instead use a binary search for finding that ‘ss’. Your logic is correct otherwise.
ok , thanks.
Got the error, it was re-initialization of the tree. Thanks.
Please add the problems to practice section.
Will there be editorials for these question?
what was the logic for the problem “Speed”, can someone help me?