Phoenix17's blog

By Phoenix17, history, 4 years ago, In English

How do you test solutions to IOI problems on your local compiler ?

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

»
4 years ago, # |
  Vote: I like it +11 Vote: I do not like it

Download the zip file which comes with the problem; it should be available on the IOI website and in many judges as well (oj.uz has it on the right side when you open the problem). The zip file will contain a compile script, along with templates and a grader which will allow you to test the problem on your own inputs. The grader details are usually given in the problem statement itself.

You can also download all data (graders, solutions, testcases, etc.) for all problems for a specific year from the IOI website. If you want to test your solution locally completely (as in get the verdict), just write a script to run your program through the grader based on all the testcases given.