使用新的生成比赛排名的方式
This commit is contained in:
@@ -141,7 +141,7 @@ class ContestRank(models.Model):
|
||||
info["ac_time"] = (submission.create_time - self.contest.start_time).total_seconds()
|
||||
|
||||
# 之前已经提交过,但是是错误的,这次提交是正确的。错误的题目不计入罚时
|
||||
self.total_time += (info["ac_time"] + info["error_time"] * 20 * 60)
|
||||
self.total_time += (info["ac_time"] + info["error_number"] * 20 * 60)
|
||||
problem = ContestProblem.objects.get(id=submission.problem_id)
|
||||
if problem.total_accepted_number == 0:
|
||||
info["is_first_ac"] = True
|
||||
|
||||
Reference in New Issue
Block a user