Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Submission data #6

Open
raydwaipayan opened this issue Nov 15, 2020 · 1 comment
Open

Submission data #6

raydwaipayan opened this issue Nov 15, 2020 · 1 comment
Assignees

Comments

@raydwaipayan
Copy link
Member

design data type to handle submissions:

type submission struct {
...
}

@raydwaipayan raydwaipayan self-assigned this Nov 15, 2020
@arnabsen1729
Copy link
Contributor

arnabsen1729 commented Nov 16, 2020

Taking idea from the CF Api I have jotted down some. If more has to be added, comment it, I will make the necessary edits.

Field Description
id Integer.
creationTimeSeconds Integer. Time, when submission was created.
relativeTimeSeconds Integer. Number of seconds, passed after the start of the contest (or a virtual start for virtual parties), before the submission.
problemId* Problem object. (will refer to a problem struct)
language* String. (C, C++, JAVA, Python)
verdict Enum: ACCEPTED, COMPILATION_ERROR, RUNTIME_ERROR, WRONG_ANSWER, TIME_LIMIT_EXCEEDED, MEMORY_LIMIT_EXCEEDED
passedTestCount Integer. Number of passed tests.
timeConsumedMillis Integer. Maximum time in milliseconds, consumed by solution for one test.
memoryConsumedBytes Integer. Maximum memory in bytes, consumed by solution for one test.
points Floating point number. Can be absent. Number of scored points for IOI-like contests.

* -> data in the request body

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants