judger

package
v0.0.0-...-8371504 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Judge

func Judge(conf Config, ptar io.Reader, utar io.Reader, con io.Writer) (res Result, ps []Result)

Types

type Config

type Config struct {
	Points      int
	TimeLimit   int64 // ms
	MemoryLimit int64 // mbytes
}

type Result

type Result struct {
	Status Status
	Time   int64
	Detail string
}

func (Result) String

func (r Result) String() string

type Status

type Status int
const (
	AC Status = iota
	WA
	PE
	TLE
	MLE
	OLE
	CE
	RE
	SE
)
const OK Status = 0 // alias AC

func (Status) String

func (s Status) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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