JOJ3/internal/parser/tierscore/meta.go
张泊明518370910136 45490f3d1e
All checks were successful
submodules sync / sync (push) Successful in 49s
build / build (push) Successful in 1m48s
build / trigger-build-image (push) Successful in 9s
feat(parser/tierscore): new tiered scoring parser
2025-02-17 08:20:35 -05:00

25 lines
464 B
Go

// Package tierscore provides a parser for tiered scoring based on
// time and memory constraints. Leave the field empty or 0 to disable.
package tierscore
import "github.com/joint-online-judge/JOJ3/internal/stage"
var name = "tierscore"
type Tier struct {
TimeLessThan uint64 // ns
MemoryLessThan uint64 // bytes
Score int
}
type Conf struct {
Tiers []Tier
}
type TierScore struct{}
func init() {
stage.RegisterParser(name, &TierScore{})
}