International Collegiate Programming Contest Validator Interface Standard
From PC2wiki
Contents |
Introduction
See International Collegiate Programming Contest Validator Interface Standard for an introduction and description of the standard.
The PC² Validator conforms and support Automated Judging using the International Collegiate Programming Contest Validator Interface Standard.
Example Result File Contents
In this example the string1 is the text of a judgement, string2 is a comment about the judgement. PC² matches the judgement text against the judgment text configured in Edit Judgement.
<?xml version="1.0"?> <result outcome = "string1"> string2 </result>
<?xml version="1.0"?> <result outcome="accepted" security="156XRSAM.txt"> MessageString2 </result>
PC² XML security tag
For security reasons, a security tag is added to the XML results file. The result file name, in this case 156XRSAM.txt, is the value for the security tag.
Validator execution example:
java -cp /pc2/v9/lib/pc2.jar edu.csus.ecs.pc2.validator.Validatorsumit.dat estdout.pc2 sumit.ans 156XRSAM.txt -pc2 1 true
The 156XRSAM.txt file contents:
<?xml version="1.0"?> <result outcome="accepted" security="156XRSAM.txt"> MessageString2 </result>
Note that the result file name will change each time the Validator is executed.
Result File XML Schema
Draft XML Schema
<?xml version="1.0" encoding="UTF-8"?> <schema xmlns="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"> <element name="result"> <complexType> <attribute name="outcome" type="string" use="required" /> <attribute name="securityKey" /> </complexType> </element> </schema>
See Also
External Links
International Collegiate Programming Contest Validator Interface Standard
