Difference between revisions of "CCS Enhancements"

From PC2wiki
Jump to: navigation, search
m (added info about run time limits in yaml files)
m (added YAML link, added see also section)
Line 4: Line 4:
 
problem there can be a [[problem.yaml]] file.   
 
problem there can be a [[problem.yaml]] file.   
  
To produce these yaml files use the PC² Report ''Export Contest YAML files'''
+
To produce these yaml files use the PC² Report ''Export Contest YAML files''
  
 
= [[contest.yaml]] file=
 
= [[contest.yaml]] file=
Line 72: Line 72:
 
     timeout: 15
 
     timeout: 15
  
 +
==See Also==
 +
* [[CCS Standard]]
 +
* [http://www.yaml.org| YAML Official site] YAML file format description
 
 
 
[[Category:CCS|CCS]]
 
[[Category:CCS|CCS]]

Revision as of 22:23, 22 December 2011

The following are PC² enhancements to the CCS Standard.

The contest.yaml file contains general contest information and for each problem there can be a problem.yaml file.

To produce these yaml files use the PC² Report Export Contest YAML files

contest.yaml file

The following are additions to the CCS Standard contest.yaml file.

Sites Section

The sites section defines all fields for each pc2 server/site

sites:
 - number: 1
     name: Site 1
       IP: 130.86.67.202
     port: 50002
 password: siteone

 - number: 2
     name: Site 2
       IP: 130.86.67.201
     port: 50002

The password field is optional, if not present, then the default Joe password will be created. Ex. login: site2 password site2

Accounts Section

The accounts section defines team accounts, it has equivalent functionality to the Generate Accounts feature.

accounts:
 - account: TEAM
     site: 1
    count: 10
 
 - account: TEAM
     site: 2
    count: 10

- account: JUDGE
     site: 4
    count: 20

 - account: SCOREBOARD
     site: 4
    count: 1

Timeout Key

The run-time execution time limit for all problems can be specified with the timeout key. A time limit can be overridden if a timeout is specified in the problem.yaml file.

# set run time limit for all problems to 20 seconds
timeout: 20

problem.yaml file

Limits Section

For each problem a run-time execution time limit can be specified in the limits section

# use 15 seconds for this problem definition
limits: 
   timeout: 15

See Also