We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Correct for 0,1. Timeout for 2,10. Incorrect for 3,4,5,6,7,8,9.
I have an idea how to speed up my script, but I don't know why it's failing for the majority of the scripts. I get the correct answer on Project Euler's site...
edit: I was missing precision, using ints instead of longs. 2 to 10 now timeout instead of fail.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Project Euler #207: Integer partition equations
You are viewing a single comment's thread. Return to all comments →
C++14.
Correct for 0,1. Timeout for 2,10. Incorrect for 3,4,5,6,7,8,9.
I have an idea how to speed up my script, but I don't know why it's failing for the majority of the scripts. I get the correct answer on Project Euler's site...
edit: I was missing precision, using ints instead of longs. 2 to 10 now timeout instead of fail.