Faiing for larger test case - 8th Root

Could you please check what I’m doing wrong here? Code is failing for larger test cases.

I’ve checked this problem on the discussion forum as well. My code should work. Please help.

@simar94.singh https://ide.codingblocks.com/s/284047 i guess trying to store the output of pow is causing overflow and hence wrong answer

thanks. got it. I was trying to store it in a variable.

1 Like