Preparing a Programming Problem

There are two ways you can add a programming problem to a contest: create a new one in Drafts, or add one from Toph’s past programming problem archive.

If you want to use a past problem, you can still make changes to the problem statement so that it is not obvious to the participants of the contest.

To create a new programming problem using Drafts:

  • Log in to Drafts using your Toph account.
  • Click on “New”.
  • Choose a type and title for your problem.
    • Standard: Uses standard I/O
    • Interactive: Solution interacts with a driver program
    • Function-based: Only a function needs to be implemented to solve the problem (I/O is handled automatically)
  • Prepare your problem as you see fit
    • Participants can see the problem statement during the contest.
    • Sample tests are made a part of the problem statement.
    • Both sample and non-sample tests are used by Toph to evaluate the submissions.
    • Checker determines how outputs will be compared.
    • Solutions are used to test the problem. Ideally at least one correct/expected solution should be added and marked as “Reference”.

You can share the problem with your peers to collaborative on the problem’s design and testing. It must not be shared with contest participants.

Once the programming problem has been prepared in Drafts and tested, you can add it to the contest:

  • Go to the “Challenges” section.
  • Click on “Import”.
  • Search and choose the programming problem you want to add.
  • Click on “Import”.

The next step is to add participants to the contest. You can do so in one of the two ways:

Alternatively, the contest can also be made open for all. To do that, please contact Toph.