Difference between revisions of "Problem.yaml"

From PC2wiki
Jump to: navigation, search
m (See Also: added cat)
m (problem.yaml specification: small update)
Line 11: Line 11:
See the [[CCS]] [https://clics.ecs.baylor.edu/index.php/Problem_format| problem format]
See the [[CCS]] [https://clics.ecs.baylor.edu/index.php/Problem_format| problem format]
for the description of the problem.yaml file.
for the description of the problem.yaml file and the locations of all the problem files.
==Sample problem.yaml==
==Sample problem.yaml==

Revision as of 14:21, 1 February 2013

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

Unlike the standard, the name of the problem can be put into the problem.yaml. Per the standard the name of the problem is in a tex file, here is an example filename/location


General form location for the problem statement is:

<shortname>/problem_statement/problem.<ISO 639-1 alpha-2 language code>.tex

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


The contest.yaml problem entry for sumit is:

  - letter: A
    short-name: sumit

Solution source locations

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


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.


See Also