Difference between revisions of "Run.properties"

From PC2wiki
Jump to: navigation, search
(initial article)
 
m (Optional names: add site number)
 
(3 intermediate revisions by the same user not shown)
Line 3: Line 3:
 
===Required names===
 
===Required names===
  
mainfile= source file name of main (to be executed executed) source file
+
{| class="wikitable"
 +
! name !! Description !! Example !! Type
 +
|-
 +
| <code>mainfile</code> ||source file name of main (to be executed) source file|| sumit.java|| string/filename
 +
|-
 +
|}
  
 
===Optional names===
 
===Optional names===
  
contesttime= number of milliseconds since contest start when submission sent
+
{| class="wikitable"
 +
! name !! Description !! Example !! Type
 +
|-
 +
| <code>contesttime</code> ||ms since contest start when submission received|| 75000|| long
 +
|-
 +
| <code>submittedby</code> ||either a # meaning a team or a login account|| judge3|| string
 +
|-
 +
| <code>language</code> ||language name, can be the file extension or the full title of the language used|| python || string
 +
|-
 +
| <code>problem</code> ||problem short name as found in the problemset.yaml|| sumit|| string/directory
 +
|-
 +
| <code>solved</code> ||did this submission solve the problem?|| yes  || yes|no
 +
|-
 +
| <code>sourcecount</code> ||number of source files submitted|| 3 || integer
 +
|-
 +
| <code>source###</code> ||name of the source file ###|| sumit.py || string/filename
 +
|-
 +
| <code>site</code> ||number of the site where submitted from || 4 || integer
 +
|}
  
submittedby= either a # meaning a team or a login account (like judge3)
+
===Example===
 
 
language= language name, can be the file extension or the full title of the language used
 
 
 
problem= problem short name as found in the problemset.yaml
 
 
 
solved= boolean (yes/no or true/false)
 
 
 
[[TBD]] should we limit the boolean values to yes/no ?
 
 
 
sourcecount= number of source files submitted
 
 
 
source1= source file one
 
source2= source file two
 
sourceN= source file N
 
 
 
===Examples===
 
  
 
  mainfile=Main.java
 
  mainfile=Main.java
Line 35: Line 42:
 
  source2=Utilities.java
 
  source2=Utilities.java
 
  sourcecount=2
 
  sourcecount=2
  solved=Yes
+
  solved=yes
 +
 
 +
=See Also=
 +
 
 +
* [[Contest Data Package]]
 +
 
 +
[[Category:Import and Export]]

Latest revision as of 08:24, 26 November 2014

The run.properties file contains information about a run.

Required names

name Description Example Type
mainfile source file name of main (to be executed) source file sumit.java string/filename

Optional names

name Description Example Type
contesttime ms since contest start when submission received 75000 long
submittedby either a # meaning a team or a login account judge3 string
language language name, can be the file extension or the full title of the language used python string
problem problem short name as found in the problemset.yaml sumit string/directory
solved did this submission solve the problem? yes no
sourcecount number of source files submitted 3 integer
source### name of the source file ### sumit.py string/filename
site number of the site where submitted from 4 integer

Example

mainfile=Main.java
problem=low
language=Java
submittedby=28
contesttime=1897053
source1=Main.java
source2=Utilities.java
sourcecount=2
solved=yes

See Also