Changes between Version 2 and Version 3 of AddProblem

Show
Ignore:
Timestamp:
06/25/08 07:59:58 (2 years ago)
Author:
arnstein
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • AddProblem

    v2 v3  
    5151 <checker>data/problems/MyProblem/checker.sh</checker> 
    5252 
    53 The checker behaviour is as follows: it takes two parameters: The outputfile generated by the participants code, followed by the output file given in the problem statement. The checker returns Zero if the output is accepted, and non-zero value otherwise. The checker can also output exactly one line of text to stdout, which will be taken the score for the submission. You may not output anything else, although you are allowed to output into stderr. 
     53The checker behaviour is as follows: it takes two parameters: The outputfile generated by the participants code, followed by the output file given in the problem statement. The checker returns Zero if the output is accepted, and non-zero value otherwise.  
     54 
     55In some instances, you may want to provide custom scores depending on the output. In this case, you should first add the following node in the XML file. 
     56 
     57 <checker-outputs-score>true</checker-outputs-score> 
     58 
     59In this case the checker should output the following on stdout: 
     60 
     61 <score> <small description> 
     62 
     63Note that <small description> will be visible to the user, in fact, it will be displayed on the queue page. Therefore: 1. don't output sensitive information, and 2. Keep it short. If the checker returns 0, then any score outputted will be disregarded and the score will be set as 0. 
     64 
    5465 
    5566== Notes ==