Difference between revisions of "Problem.yaml"

From PC2wiki
Jump to: navigation, search
m (See also: rename cat)
m (See Also: updated links)
 
(4 intermediate revisions by the same user not shown)
Line 4: Line 4:
 
See the article [[Problem Format]] for a complete
 
See the article [[Problem Format]] for a complete
 
list of files that describe a problem.
 
list of files that describe a problem.
 +
 +
== Contents of problem.yaml ==
 +
 +
{|border="1" cellpadding="1"
 +
|+ problem.yaml keys
 +
! Key !! Comments !! Example
 +
|-
 +
| source || optional || ICPC World Finals 2011
 +
|-
 +
| author || optional, defaults to "Unknown"  ||
 +
|-
 +
| license || optional, defaults to "cc by-sa"  ||
 +
|-
 +
| rights_owner || mandatory || ICPC
 +
|-
 +
| keywords || optional ||
 +
|-
 +
| difficulty || optional ||
 +
|-
 +
| limits ||problem limitations ||
 +
|-
 +
| validator
 +
| optional, set of [[Validator#CLICS_Output_Validator| validator options]],
 +
| case_sensitive space_change_sensitive
 +
|}
 +
 +
 +
 +
{|border="1" cellpadding="1"
 +
|+ PC^2 problem.yaml keys
 +
! Key !! Comments !! Example
 +
|-
 +
| name||Problem Title|| Sumit Sample Problem
 +
|-
 +
|}
 +
 +
The problem name will typically be fetched from the [[Problem.tex]] file
 +
rather than using the name key.
  
 
==Sample problem.yaml==
 
==Sample problem.yaml==
Line 11: Line 49:
 
  author: John von Judge  
 
  author: John von Judge  
 
  rights_owner: ICPC
 
  rights_owner: ICPC
   
+
 
 +
  # pc2-specific key
 
  name: Sumit Sample Problem
 
  name: Sumit Sample Problem
  
 
The source, author, and rights_owner are optional.
 
The source, author, and rights_owner are optional.
 
name: is followed by the title of the problem.
 
  
 
==See Also==
 
==See Also==
 +
* [[contest.yaml]]
 
* [[Problem Format]]
 
* [[Problem Format]]
* [[Contest Control System]]
+
* [[problemset.yaml]]
* [[contest.yaml]]
+
 
  
 
[[Category:CLICS]]
 
[[Category:CLICS]]
 
[[Category:Version 9.3]]
 
[[Category:Version 9.3]]
 
[[Category:Import and Export]]
 
[[Category:Import and Export]]

Latest revision as of 17:32, 27 June 2017

The problem.yaml is one part of the set of files that compose a problem description and data files.

See the article Problem Format for a complete list of files that describe a problem.

Contents of problem.yaml

problem.yaml keys
Key Comments Example
source optional ICPC World Finals 2011
author optional, defaults to "Unknown"
license optional, defaults to "cc by-sa"
rights_owner mandatory ICPC
keywords optional
difficulty optional
limits problem limitations
validator optional, set of validator options, case_sensitive space_change_sensitive


PC^2 problem.yaml keys
Key Comments Example
name Problem Title Sumit Sample Problem

The problem name will typically be fetched from the Problem.tex file rather than using the name key.

Sample problem.yaml

# Problem configuration
source: ICPC Mid-Atlantic Regional Contest
author: John von Judge 
rights_owner: ICPC
# pc2-specific key 
name: Sumit Sample Problem

The source, author, and rights_owner are optional.

See Also