Sort by

recency

|

65 Discussions

|

  • + 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

  • + 0 comments

    In C# I am logging the answer which is the same as the expected answer but still getting the wrong answer. Per somebody's suggestion about C I tried adding a logger right before I return to no avail. I tried adding a logger to the solution code right after the return to no avail. In both cases it logs the expected answer but still getting the wrong answer. What gives?!?

  • + 1 comment

    In some languages this does not submit correctly.

    In Node.js, paste:

    ws.write(result + "\n")

    at the end of function main's for loop.

    Cheers!

  • + 0 comments

    The Python template is missing the code to write the result to stdout. You can add the following lines to do so:

            fptr.write(str(result))
            fptr.write('\n')
    
  • + 0 comments

    This code efficiently calculates the number of ways Jim can buy candies, a common problem in computer science courses. I am getting assignment help from it.