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.
For each testcase, print the number of ways Jim can buy candies from the shop in a newline. If the answer has more than 9 digits, print the last 9 digits.
which is incorrect, since it does not expect you to print leading zeros. instead of slicing the string simply do mod 1e10
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
K Candy Store
You are viewing a single comment's thread. Return to all comments →
problem statement says
which is incorrect, since it does not expect you to print leading zeros. instead of slicing the string simply do mod 1e10