contest

package
v1.0.0-beta Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2019 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HostAtCoder = "atcoder"
	HostCodeJam = "codejam"
	HostFree    = "free"
)

Variables

This section is empty.

Functions

func CurrentQuizID

func CurrentQuizID(wd string) (string, error)

func MkCurrentContestDir

func MkCurrentContestDir() error

func MkQuizDir

func MkQuizDir(quizzes []string) error

func MkSample

func MkSample(quizDir string, sample *Sample) error

Types

type AtCoder

type AtCoder struct {
	ContestID string
	Session   *httputil.Session
}

func NewAtCoder

func NewAtCoder(id string) *AtCoder

func (AtCoder) Login

func (a AtCoder) Login() error

func (AtCoder) QuizURL

func (a AtCoder) QuizURL(quizID string) string

func (AtCoder) QuizzesURL

func (a AtCoder) QuizzesURL() string

func (AtCoder) ScrapeQuizzes

func (a AtCoder) ScrapeQuizzes() ([]string, error)

func (AtCoder) ScrapeSample

func (a AtCoder) ScrapeSample(quizID string) ([]*Sample, error)

type Sample

type Sample struct {
	ID     int
	Input  string
	Output string
}

Jump to

Keyboard shortcuts

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