Difference between revisions of "Grader"

From Problem Archive
Jump to: navigation, search
(Output: Changed output format to match whats in Problem Format)
(Moved grader specification to main document)
 
Line 1: Line 1:
== Overview ==
+
#REDIRECT [[Problem Format]]
 
 
A grader is a program that is given the results of judging individual test files and calculates an aggregate result.
 
 
 
A grader program must be an application (executable or interpreted) capable of being invoked with a command line call. The details of this invocation are described below.
 
 
 
== Invocation ==
 
 
 
When invoked the grader will get the test file results on stdin.
 
 
 
The grader should be possible to use as follows on the command line:
 
 
 
./grader < judgeresults
 
 
 
== Input ==
 
 
 
The input file will have the one line per test file containing the result of judging the testfile, using the code from the table below, followed by whitespace, followed by the score.
 
 
 
{| class="wikitable"
 
! Code !! Meaning
 
|-
 
| AC || Accepted
 
|-
 
| WA || Wrong Answer
 
|-
 
| RTE || Run-Time Error
 
|-
 
| TLE || Time-Limit Exceeded
 
|}
 
 
 
== Output ==
 
 
 
The grader must output the aggregate result on stdout. The output must be one of the codes listed in the table above followed by a number. Any other output, including no output, will result in a Judging Error.
 
 
 
The grader may output debug information on stderr. This information may be displayed to the user upon invocation of the grader.
 

Latest revision as of 12:53, 3 August 2013

Redirect to: