Can anyone please tell why my code is giving TLE for the problem-
my solution - CodeChef: Practical coding for everyone
My code complexity is O(T*(n+logn))
Can anyone please tell why my code is giving TLE for the problem-
my solution - CodeChef: Practical coding for everyone
My code complexity is O(T*(n+logn))
Same case for me . Watch this CodeChef: Practical coding for everyone . This submission has 0.21 sec running time .
use scanf same was the case with me
i got accepted after using scanf CodeChef: Practical coding for everyone