Contest Types
- class cforces.types.contest.RatingChange(**kwargs)
Bases:
ObjectRepresents a participation of user in rated contest.
- contest_id: int
- contest_name: str
- handle: str
- rank: int
- rating_update_time_seconds: int
- old_rating: int
- new_rating: int
- static from_dict(raw_data: Dict[str, Any]) RatingChange
- property rating_update_time: datetime
- class cforces.types.contest.RanklistRow(**kwargs)
Bases:
ObjectRepresents a ranklist row.
- rank: int
- points: float
- penalty: int
- successful_hack_count: int
- unsuccessful_hack_count: int
- problem_results: List[ProblemResult]
- last_submission_time_seconds: int | None
- static from_dict(raw_data: Dict[str, Any]) RanklistRow
- property last_submission_time: timedelta
- class cforces.types.contest.Standings(**kwargs)
Bases:
ObjectNon-API-Compliant Codeforces Type
- rows: List[RanklistRow]
- class cforces.types.contest.Contest(**kwargs)
Bases:
ObjectRepresents a contest on Codeforces.
- id: int
- name: str
- type: ContestType
- phase: ContestPhase
- frozen: bool
- duration_seconds: int | None
- freeze_duration_seconds: int | None
- start_time_seconds: int | None
- relative_time_seconds: int | None
- prepared_by: str | None
- website_url: str | None
- description: str | None
- difficulty: int | None
- kind: str | None
- icpc_region: str | None
- country: str | None
- city: str | None
- season: str | None
- duration() timedelta
- freeze_duration() timedelta
- relative_time() timedelta
- start_time() datetime