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

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

I am trying to set up a judge on HackerRank for an interactive problem(like the one here). Can anyone suggest how to go about handling the interaction with the judge? I have found a sample checker, which given the user's output, checks whether the participant has outputted 4 or more prime numbers. If so, the solution is accepted else rejected.

But, I cannot understand how to handle the interaction with the judge? What I want to do is write something to the test case input file and the user reads that and then performs computation with that value. Does writing to the test case input path work?

What I know is setting up interactive problems on CodeChef is somewhat similar to setting up a checker and that is why reference to "custom checker".

Thank You

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

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

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

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

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

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

There is a brief tutorial for problem setters in SPOJ about creating interactive problems.

https://www.spoj.com/tutorials/PSINT/

A similar tutorial should exist in HackerRank.

Hope that helps.