Sort by

recency

|

64 Discussions

|

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

  • + 0 comments

    The framework for C doesn't output any results. In main(), right underneath

        int result = solve(n, k);
    

    add the following line:

        fprintf(fptr, "%d\n", result);