model

package
v0.0.0-...-ca8e88b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 5, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Contest

type Contest struct {
	Name  string
	ID    string // like "abc123"
	Kind  string // like "Algorithm", "Heuristics"...
	State string // "permanent", "upcoming", "archive"

}

Contest has Name, ID, Kind, State.

type IoStyle

type IoStyle struct {
	InputSig, OutputSig   string
	InputDesc, OutputDesc string
}

IoStyle represents input and output signature. Input and Output are machine readable sections. ~Desc is Description of ones.

type Language

type Language struct {
	Value    string
	Datamime string
	Text     string
}

Language stand for "<option value={Language.Value} data-mime={Language.Datamime}>{Language.Text}</option>"

type Submission

type Submission struct {
	ID           string
	Time         time.Time
	TaskName     string
	UserID       string
	LanguageName string
	Score        string
	CodeSize     string
	Status       string
	ExecTime     string
	Memory       string
}

type Task

type Task struct {
	Name   string
	IdName string // "A", "90"...
	ID     string // "abc123_a", "typical90_cl"...
}

type TaskInfo

type TaskInfo struct {
	ProblemStatement     string
	ProblemStatementHTML string
	Constraints          string
	ConstraintsHTML      string
	IoStyle              IoStyle
	TestCases            []*TestCase
}

TaskInfo is detailed information of a task. It is target to express [commonest task page] neither too much nor little.

type TestCase

type TestCase struct{ Input, Output string }

TestCase. Can be used to ascertain (.Input > `user program` == .Output).

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL