settings

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MarshallYamlProblem

func MarshallYamlProblem(schema Problems, file string)

func Parse

func Parse(source string, dest interface{}) error

func TimePerse

func TimePerse(t string) time.Time

func UnmarshalYamlProblem

func UnmarshalYamlProblem(schema *Problems, file string)

Types

type ContestInformation

type ContestInformation struct {
	Title     string `yaml:"title"`
	StartTime string `yaml:"start_time"`
	EndTime   string `yaml:"end_time"`
}

type LimitDescription

type LimitDescription struct {
	Description string `yaml:"description"`
}

type Problem

type Problem struct {
	ProblemNum         string `yaml:"number"`
	ProblemTitle       string `yaml:"title"`
	ProblemScore       int    `yaml:"score"`
	ProblemLimitTime   int    `yaml:"limit_execute_time"`
	ProblemLimitMemory int    `yaml:"limit_execute_memory"`
	ProblemDescription string `yaml:"description"`
	ProblemInput       string `yaml:"input_description"`
	ProblemOutput      string `yaml:"output_description"`
	ProblemInitialCode string `yaml:"initial_code"`

	ProblemLimitationDescription []LimitDescription `yaml:"limit_description"`
	TestCase                     []TCase            `yaml:"testcases"`
	SecretCase                   []SCase            `yaml:"secretcases"`
}

type Problems

type Problems struct {
	ContestInfomation ContestInformation `yaml:"contest_infomation"`
	Problem           []Problem          `yaml:"problem"`
}

type SCase

type SCase struct {
	Input  string `yaml:"input"`
	Output string `yaml:"output"`
}

type TCase

type TCase struct {
	Input       string `yaml:"input"`
	Output      string `yaml:"output"`
	Description string `yaml:"description"`
}

Jump to

Keyboard shortcuts

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