onlinejudge.service.anarchygolf module

the module for Anarchy Golf (http://golf.shinh.org/)

class onlinejudge.service.anarchygolf.AnarchyGolfProblem(*, problem_id)[source]

Bases: onlinejudge.type.Problem

download_sample_cases(*, session=None)[source]
Raises

SampleParseError

Return type

List[TestCase]

classmethod from_url(url)[source]
Return type

Optional[AnarchyGolfProblem]

get_service()[source]
Return type

AnarchyGolfService

get_url()[source]
Return type

str

class onlinejudge.service.anarchygolf.AnarchyGolfService[source]

Bases: onlinejudge.type.Service

classmethod from_url(url)[source]
Return type

Optional[AnarchyGolfService]

get_name()[source]

example:

  • AtCoder

  • Codeforces

  • PKU JudgeOnline

Note

If you want something like identifier (e.g. atcoder, codeforces or poj), you can use a domain obtained from get_url().

Return type

str

get_url()[source]
Return type

str