Passed here but giving runtime error in spoj please see
leave it done…was not checking the bound of x
but that passes test case here so you can add that here
hi… what problem are u facing… i can see u have successfully submitted the code and gained full points
actually i submitted the same code on spoj then i got runtime error but passed here, i didnt applied the check on line 11 (x<n) one , so now it passed also you can add that corner case in your testcase
sure… will pass this to the concerned team… is there any other doubt related to this ques?
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.