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.
In the problem it is specified that a and b will be in the 10^7 range .However ,the test cases do not follow this and have enormous values that exceed this range.That's why using 'int' instead of 'long' fails most of the test cases.The problem needs to be updated.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Filling Jars
You are viewing a single comment's thread. Return to all comments →
In the problem it is specified that a and b will be in the 10^7 range .However ,the test cases do not follow this and have enormous values that exceed this range.That's why using 'int' instead of 'long' fails most of the test cases.The problem needs to be updated.