# Functions
BatchAddUsers adds users in batch.
BatchInsertJobs try to insert all given jobs.
No description provided by the author
CollectTestGroups collects the test groups for a list of problems.
CollectProblemResults collects an user's problem results for a contest.
FirstJob returns the first job that needs to be done.
GenerateConfig generates a random configuration.
GetConfig gets the configuration of the server.
GetContests returns a list of all contests.
GetContestsFinished gets a list of contests that are finished (past contests).
GetContestsUnfinished gets a list of contests that are unfinished (upcoming or pending).
GetContestUserClarifications returns the clarifications of a contest for an user.
GetFileWithName returns a file with a given name.
GetNearestOngoingContest return the nearest ongoing contest.
GetProblemByName gets a Problem from the Database by its name and contest.
GetProblemFilesMeta works like GetProblemFiles, but ignores all contents.
GetProblemsSubmissions returns the submissions that belong to a list of problems.
GetProblemTests collects test groups and tests from a problem.
GetProblemTestsMeta is like GetProblemTests, but inputs and outputs are not included.
GetQueueOverview gets the current queue overview.
Get scoreboard given problems and contest.
GetUnreadAnnouncements returns the list of announcements later than the given id.
GetUnreadClarifications returns unread clarifications later than the given ID.
GetUserProblemSubmissions gets all submissions belonging to an user on a (list of) problem(s).
LanguageByExt returns a language based on the file extension.
NewJobCompile creates a new Compile job.
NewJobRun creates a new Run job.
NewJobScore creates a new Score job.
RejudgeCompile re-compiles all submissions given.
RejudgeRun re-runs all tests for the submissions given.
RejudgeScore re-scores all submissions given.
# Constants
The contestants are sorted by number of "solved" problems, then by total penalty.
Problems each have different scores, and penalty only serves as tiebreakers.
Possible values of JobType.
Possible values of JobType.
Possible values of JobType.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Defined values for PenaltyPolicy.
Defined values for PenaltyPolicy.
Defined values for PenaltyPolicy.
There is no scoreboard rendered during the contest.
This allowes everyone to see the scoreboard.
This only allowes registered users to see the scoreboard.
Defined values for ScoringMode.
Defined values for ScoringMode.
Defined values for ScoringMode.
Defined values for ScoringMode.
Defined values for ScoringMode.
All possible values of TestScoringMode.
All possible values of TestScoringMode.
All possible values of TestScoringMode.
# Structs
Config is the configuation of the server.
JSONProblem represents a JSON encoded problem metadata.
JSONProblemResult represents a JSON encoded user's result of a problem in the scoreboard.
JSONScoreboard represents a JSON encoded scoreboard.
JSONUserResult represents a JSON encoded user in the scoreboard.
ProblemWithTestGroups is a problem with attached test groups, that will provide score-related statistics.
QueueOverview gives overview information about the queue of jobs.
Scoreboard is the struct used to render scoreboard.
TestGroupWithTests are wrapped test groups with tests included.
UserResult stores information about user's preformance in the contest.
# Type aliases
ContestType is the enum representing the contest type.
JobType determines the type of the job.
Language represents the language of the submission.
PenaltyPolicy dictates how the penalty is calculated.
ScoreboardViewStatus is the enum representing the scoreboard view status.
ScoringMode dictates how the best submission is chosen.
TestScoringMode determines how the score of each test in the group adds up to the total of the group.