Skip to content
This repository has been archived by the owner on Feb 5, 2024. It is now read-only.

Latest commit

 

History

History
21 lines (19 loc) · 1.69 KB

CFSubmission.md

File metadata and controls

21 lines (19 loc) · 1.69 KB

Class: CFSubmission.java

Description: Contains informations of a submission.

Returns Method Description
CFSubmission(JSONObject ob) constructor
Constructs object on the basis of the informations from 'ob'
int getId() Unique Submission Id
long getCreationTimeSeconds() Time, when submission was created, in unix-format.
long getRelativeTimeSeconds() Number of seconds, passed after the start of the contest (or a virtual start for virtual parties), before the submission.
CFProblem getProblem returns a CFProblem object
String getProgrammingLanguage() Programming language that was used in this submission
String getVerdict() Verdict of the submission.
Possible verdicts are: "FAILED", "OK", "PARTIAL", "COMPILATION_ERROR", "RUNTIME_ERROR", "WRONG_ANSWER", "PRESENTATION_ERROR", "TIME_LIMIT_EXCEEDED", "MEMORY_LIMIT_EXCEEDED", "IDLENESS_LIMIT_EXCEEDED", "SECURITY_VIOLATED, CRASHED", "INPUT_PREPARATION_CRASHED", "CHALLENGED", "SKIPPED", "TESTING", "REJECTED"
String getTestset() testSet used for judging the submission.
Possible testSets are: "PRETESTS", "TESTS", "CHALLENGES", "TESTS1", "TESTS2", "TESTS3", "TESTS4", "TESTS5", "TESTS6", "TESTS6", "TESTS7", "TESTS8", "TESTS9", "TESTS10"
int getPassedTestCount() Number of passed tests
int getTimeConsumedMillis() Maximum time in milliseconds, consumed by solution for one test.
int getMemoryConsumedBytes() Maximum memory in bytes, consumed by solution for one test.
String toString() returns basic data in String format