Skip to content

Commit

Permalink
onsite-toolkit: resolver: fix penalty
Browse files Browse the repository at this point in the history
  • Loading branch information
undefined-moe committed Nov 23, 2024
1 parent 3acff34 commit e00fa9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/onsite-toolkit/frontend/resolver.page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit e00fa9e

Please sign in to comment.