atcoder

package
v0.0.0-...-3c6041a Latest Latest
Warning

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

Go to latest
Published: May 6, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LanguageIDCPP14gcc = "3003"
	LanguageIDCPP17gcc = "4003"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	URL *url.URL
	// contains filtered or unexported fields
}

func New

func New(cacheDir string) (*Client, error)

func (*Client) IsLoggedIn

func (c *Client) IsLoggedIn() bool

func (*Client) ListExamples

func (c *Client) ListExamples(ctx context.Context, contest, task string) ([]Example, error)

func (*Client) Login

func (c *Client) Login(ctx context.Context, username, password string) error

func (*Client) Submit

func (c *Client) Submit(ctx context.Context, contest string, task string, languageID string, sourceCode string) (string, error)

type Example

type Example struct {
	Input  string
	Output string
}

Jump to

Keyboard shortcuts

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