Runguard: warning: timelimit exceeded (wall time): aborting command

Problem: Ultra Fast Mathematicians

I am getting runtime error(see the screenshot below).
But the same code was accepted in hack.codingbocks

How the same code got accepted in hack blocks but here failing with runtime error?
Please help me in optimizing my code(link - https://ide.codingblocks.com/s/372138)

hello @thirumeni.m07
pls share ur code using cb ide

Hi Aman
Here is the link - https://ide.codingblocks.com/s/372138

@thirumeni.m07
ur code is correct.
i think u r clicking on run button . that button is there to run ur code on custom test case(u need to provide on our own).
if u dont give any test case then it show same error.

try to submit again(by clicking on submit option)

1 Like

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.