Add new IOI format
This commit is contained in:
parent
af8ab310ce
commit
dbb189444d
13 changed files with 327 additions and 52 deletions
|
@ -81,7 +81,7 @@ class IOIContestFormat(DefaultContestFormat):
|
|||
|
||||
self.handle_frozen_state(participation, format_data)
|
||||
participation.cumtime = max(cumtime, 0)
|
||||
participation.score = score
|
||||
participation.score = round(score, self.contest.points_precision)
|
||||
participation.tiebreaker = 0
|
||||
participation.format_data = format_data
|
||||
participation.save()
|
||||
|
@ -107,7 +107,7 @@ class IOIContestFormat(DefaultContestFormat):
|
|||
"contest_user_submissions_ajax",
|
||||
args=[
|
||||
self.contest.key,
|
||||
participation.user.user.username,
|
||||
participation.id,
|
||||
contest_problem.problem.code,
|
||||
],
|
||||
),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue