onsite-toolkit: resolver: fix penalty

This commit is contained in:
undefined committed 2024-11-23 12:11:14 +08:00
1 parent 3acff3442c
commit e00fa9ee70
1 file changed
+1 -1
@@ -92,7 +92,7 @@ export function start(data: ResolverInput, options: DisplaySettings) {
problem.pass = true;
problem.time = Math.floor(submission.time / 60);
team.score += 1;
team.penalty += submission.time + problem.old * 20 * 60;
team.penalty += Math.floor(submission.time / 60) + problem.old * 20;
}
problem.old += 1;
}