chrisboo's blog

By chrisboo, history, 8 years ago, In English

Hi all, I am trying to make use of the hackerrank custom checker, but it doesn't seem to work for me. I've tried the suggestions on here and here (They have two pages, but neither of them works).

Can anyone kindly provide a working template? Thanks!

Update : Preferably C++

  • Vote: I like it
  • +10
  • Vote: I do not like it

»
8 years ago, # |
  Vote: I like it +5 Vote: I do not like it

Auto comment: topic has been updated by chrisboo (previous revision, new revision, compare).

»
8 years ago, # |
Rev. 2   Vote: I like it +21 Vote: I do not like it

I have no idea where to find the tutorial. The following C++ checker should work for a problem "You are given an integer N in the input. Print any N integers from interval [1,10], that their sum is 42." Note that you must know the number of samples and the number of other tests.

code
  • »
    »
    8 years ago, # ^ |
      Vote: I like it +11 Vote: I do not like it

    Wow it really works!

    I got misleaded by the tutorial and thought that we actually needed to output a JSON object but turns out it's actually unnecessary. Thanks for the help!

  • »
    »
    8 years ago, # ^ |
    Rev. 2   Vote: I like it 0 Vote: I do not like it

    How do you read Judge's output? (to compare Judge's output and Participant's output, your code seems to be reading only Input and Participant Output)