Difference between revisions of "Problem.yaml"

From PC2wiki
Jump to: navigation, search
m (Sample problem.yaml: added note about fields)
m (Data File Locations: added requirements)
Line 33: Line 33:
  
 
   contest.yaml
 
   contest.yaml
 +
  sumit/problem.yaml
 
   sumit/data/secret/sumit.ans
 
   sumit/data/secret/sumit.ans
 
   sumit/data/secret/sumit.in
 
   sumit/data/secret/sumit.in
  
The contest.yaml problem entry for sumit is:
+
Requirements:
 
+
* Problem input data files end with the extension .in
problemset:
+
* Judge's answer files end with the extension .ans
  - letter: A
+
* Every input data file must have a corresponding answer file
    short-name: sumit
+
* data files must be in the data/secret directory
  
 
==Solution source locations==
 
==Solution source locations==

Revision as of 16:35, 9 April 2014

A problem.yaml defines a single problem.

PC² creates problem.yaml and data files per problem when a contest.yaml file is created.

Each problem is defined in its own directory (folder), in that folder is the problem.yaml file and the other problem specific files.

problem.yaml specification

See the CCS problem format for the description of the problem.yaml file and the locations of all the problem files.

Sample problem.yaml

# Problem configuration
source: ICPC Mid-Atlantic Regional Contest
author: John von Judge 
rights_owner: ICPC

name: Sumit Sample Problem

The source, author, and rights_owner are optional.

name: is followed by the title of the problem.

Data File Locations

Judge's data and answer files will be under the data/secret directory, for the problem sumit these files would be stored as follows

 contest.yaml
 sumit/problem.yaml
 sumit/data/secret/sumit.ans
 sumit/data/secret/sumit.in

Requirements:

  • Problem input data files end with the extension .in
  • Judge's answer files end with the extension .ans
  • Every input data file must have a corresponding answer file
  • data files must be in the data/secret directory

Solution source locations

In this example three are three solutions for the Sumit problem.

sumit/submissions/accepted/Sumit.java
sumit/submissions/accepted/sumit.c
sumit/submissions/accepted/sumit.cpp

Sample data file location

This sample data is for the teams, usually it is the same data that is printed/listed in the problem description.

sumit/data/sample/sample.in

See Also