onlinejudge.service.poj module

the module for PKU JudgeOnline (http://poj.org/)

class onlinejudge.service.poj.POJProblem(*, 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[POJProblem]

get_service()[source]
Return type

POJService

get_url()[source]
Return type

str

class onlinejudge.service.poj.POJService[source]

Bases: onlinejudge.type.Service

classmethod from_url(url)[source]
Return type

Optional[POJService]

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