Last active
April 28, 2020 08:10
-
-
Save iammarkps/833302ce992486c645ade26a86920eda to your computer and use it in GitHub Desktop.
programming.in.th typing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
interface IGroup { | |
status: IStatus[] | |
score: number | |
fullScore: number | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
interface IStatus { | |
time: number // ms | |
memory: number // kB | |
message: string | |
verdict: string | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
interface ISubmission { | |
ID: string | |
task: ITask | |
username: string | |
language: string | |
groups: IGroup[] | |
points: number | |
code: string[] | |
timestamp: Date | |
humanTimestamp: string | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
interface ITask { | |
id: string | |
path: string | |
title: string | |
timeLimit: number | |
memoryLimit: number | |
tags: ReadonlyArray<string> | |
visible: boolean | |
submit: boolean | |
solved: number | |
type: 'normal' | 'output-only' | 'communication' | |
fileName?: ReadonlyArray<string> | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment