• + 0 comments

    problem statement says

    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