Блог пользователя chrisboo

Автор chrisboo, история, 8 лет назад, По-английски

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

  • Проголосовать: нравится
  • +10
  • Проголосовать: не нравится

»
8 лет назад, # |
  Проголосовать: нравится +5 Проголосовать: не нравится

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

»
8 лет назад, # |
Rev. 2   Проголосовать: нравится +21 Проголосовать: не нравится

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 лет назад, # ^ |
      Проголосовать: нравится +11 Проголосовать: не нравится

    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 лет назад, # ^ |
    Rev. 2   Проголосовать: нравится 0 Проголосовать: не нравится

    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)