uoj

package
v0.0.0-...-2d6fe0c Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2023 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Unzip

func Unzip(source string, target string) (string, error)

Types

type Details

type Details struct {
	Tests []Test `xml:"test"`
	Error string `xml:"error"`
}

type Result

type Result struct {
	XMLName xml.Name `xml:"result"`
	Score   int      `xml:"score"`
	Time    int      `xml:"time"`
	Memory  int      `xml:"memory"`
	Error   string   `xml:"error"`
	Details Details  `xml:"details"`
}

type SolutionMetadata

type SolutionMetadata struct {
	Language string `json:"language"`
}

type Test

type Test struct {
	Num    int    `xml:"num,attr"`
	Score  int    `xml:"score,attr"`
	Info   string `xml:"info,attr"`
	Time   int    `xml:"time,attr"`
	Memory int    `xml:"memory,attr"`
	In     string `xml:"in"`
	Out    string `xml:"out"`
	Res    string `xml:"res"`
}

type UOJAdapterConfig

type UOJAdapterConfig struct {
	SandboxMode string `json:"sandbox_mode"`
}

type UojAdapter

type UojAdapter struct{}

func (*UojAdapter) Judge

func (u *UojAdapter) Judge(ctx context.Context, config common.ProblemConfig, problemData string, solutionData string) error

func (*UojAdapter) Name

func (u *UojAdapter) Name() string

Jump to

Keyboard shortcuts

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