onlinejudge.type module¶
-
class
onlinejudge.type.Contest[source]¶ Bases:
abc.ABC- Note
Contestrepresents just a URL of a contest, without the data of the contest.
-
class
onlinejudge.type.DownloadedData[source]¶ Bases:
abc.ABC- Note
DownloadedDataand its subclasses represent contents which are obtained by network access. The values may depends your session.DownloadedDataとそのサブクラスは、ネットワークアクセスの結果得られるようなデータを表現します。その値はログイン状況などにより接続のたびに変化することがあります。
-
class
onlinejudge.type.Language(id, name)¶ Bases:
tuple- Variables
id –
LanguageId
-
property
id¶ Alias for field number 0
-
property
name¶ Alias for field number 1
-
onlinejudge.type.LanguageId(x)¶ - Note
This is just a
NewType-edstrnot, but you should not use this other than a label.
-
exception
onlinejudge.type.LoginError[source]¶ Bases:
RuntimeError
-
exception
onlinejudge.type.NotLoggedInError[source]¶ Bases:
RuntimeError
-
class
onlinejudge.type.Problem[source]¶ Bases:
abc.ABC- Note
Problemrepresents just a URL of a problem, without the data of the problem.Problemはちょうど問題の URL のみを表現します。キャッシュや内部状態は持ちません。
-
submit_code(code, language_id, *, filename=None, session=None)[source]¶ - Parameters
code (
bytes) –language_id –
LanguageId
- Raises
- Return type
-
class
onlinejudge.type.ProblemData[source]¶
-
exception
onlinejudge.type.SampleParseError[source]¶ Bases:
RuntimeError
-
class
onlinejudge.type.Service[source]¶ Bases:
abc.ABC
-
class
onlinejudge.type.Submission[source]¶ Bases:
abc.ABC
-
class
onlinejudge.type.SubmissionData[source]¶ Bases:
onlinejudge.type.DownloadedData-
abstract property
submission¶ - Return type
-
abstract property
-
exception
onlinejudge.type.SubmissionError[source]¶ Bases:
RuntimeError
-
class
onlinejudge.type.TestCase(name, input_name, input_data, output_name, output_data)¶ Bases:
tuple-
property
input_data¶ Alias for field number 2
-
property
input_name¶ Alias for field number 1
-
property
name¶ Alias for field number 0
-
property
output_data¶ Alias for field number 4
-
property
output_name¶ Alias for field number 3
-
property