How to prepare test case for USACO problems

Re: How to prepare test case for USACO problems

by Richard Lobb -
Number of replies: 2

CodeRunner questions are usually set up with the standard input and expected output for each test case explicitly stated in the list of test cases. The student's answer program should then read from standard input and write to standard output. Many (most?) major programming contests - e.g. ICPC - operate with standard input/output rather than named file(s).

It is possible to write a CodeRunner question type that takes the test case data from a set of support files (or a single zip file) but that requires advanced CodeRunner development skills and it sounds like you're a relative newcomer? I'd recommend you start with the much simpler approach of copying the data for each test into a test case in the question authoring form.

In reply to Richard Lobb

Re: How to prepare test case for USACO problems

by Sharad Goyal -

Thank you. I am able to set up the first USACO problem and test it successfully. Can I export the template and modify and import it further?

Is there any UNIX XML template location where I can download the problems?

In reply to Sharad Goyal

Re: How to prepare test case for USACO problems

by Richard Lobb -

If you have a template that you wish to re-use, you should save your question as a new question type. See the documentation.

I don't know of any public repo of USACO problems.