Fix ICPC cumtime out range
This commit is contained in:
parent
3e41fba227
commit
2a7203baa6
1 changed files with 1 additions and 1 deletions
|
@ -91,7 +91,7 @@ class ICPCContestFormat(DefaultContestFormat):
|
||||||
format_data[str(prob)] = {'time': dt, 'points': points, 'penalty': prev}
|
format_data[str(prob)] = {'time': dt, 'points': points, 'penalty': prev}
|
||||||
score += points
|
score += points
|
||||||
|
|
||||||
participation.cumtime = cumtime + penalty
|
participation.cumtime = max(0, cumtime + penalty)
|
||||||
participation.score = score
|
participation.score = score
|
||||||
participation.tiebreaker = last # field is sorted from least to greatest
|
participation.tiebreaker = last # field is sorted from least to greatest
|
||||||
participation.format_data = format_data
|
participation.format_data = format_data
|
||||||
|
|
Loading…
Reference in a new issue