Grader

From Problem Archive
Revision as of 11:04, 31 July 2013 by Niemela (talk | contribs) (Output: Changed output format to match whats in Problem Format)
Jump to: navigation, search

Overview

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.

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.