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.
I have no idea why I get run time errors for all the other test cases.
I calculated the dmax for all numbers till 10^6.
I sum these for the given input.
Yet when the test cases run, the first test case passes which means there is no issue with performance, yet all other cases thereafter 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 #183: Maximum product of parts
You are viewing a single comment's thread. Return to all comments →
I have no idea why I get run time errors for all the other test cases. I calculated the dmax for all numbers till 10^6. I sum these for the given input. Yet when the test cases run, the first test case passes which means there is no issue with performance, yet all other cases thereafter fail.