onlinejudge.service.facebook module

the module for Facebook Hacker Cup (https://www.facebook.com/hackercup/)

New in version 6.5.0.

class onlinejudge.service.facebook.FacebookHackerCupProblem(*, problem_id)[source]

Bases: onlinejudge.type.Problem

Variables

problem_idint

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

SampleParseError

Return type

List[TestCase]

classmethod from_url(url)[source]
Return type

Optional[FacebookHackerCupProblem]

get_service()[source]
Return type

FacebookHackerCupService

get_url()[source]
Return type

str

class onlinejudge.service.facebook.FacebookHackerCupService[source]

Bases: onlinejudge.type.Service

classmethod from_url(url)[source]
Return type

Optional[FacebookHackerCupService]

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