You are viewing a single comment's thread. Return to all comments →
Wrong answer for the last 3 cases and I have no idea why... I get 9981236306 for n=100000
Edit: My solution worked but it took to much memory (about 600MB for n=100000 [Limit is 512MB]) I noticed it after tc18 got a runtime error randomly
I optimized the code and all testcases were accepted
Seems like cookies are disabled on this browser, please enable them to open this website
Project Euler #29: Distinct powers
You are viewing a single comment's thread. Return to all comments →
Wrong answer for the last 3 cases and I have no idea why... I get 9981236306 for n=100000
Edit: My solution worked but it took to much memory (about 600MB for n=100000 [Limit is 512MB]) I noticed it after tc18 got a runtime error randomly
I optimized the code and all testcases were accepted