mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-22 12:18:42 +00:00
fix: 9c2b2a96ab
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
d9be3be581
commit
519dbb8700
@ -169,10 +169,17 @@ function calcStandings($contest, $contest_data, &$score, &$standings, $update_co
|
|||||||
|
|
||||||
for ($i = 0; $i < $n_people; $i++) {
|
for ($i = 0; $i < $n_people; $i++) {
|
||||||
if ($i == 0 || !$is_same_rank($standings[$i - 1], $standings[$i])) {
|
if ($i == 0 || !$is_same_rank($standings[$i - 1], $standings[$i])) {
|
||||||
$standings[$i][] = $standings[$i][3];
|
if ($show_reviews) {
|
||||||
$standings[$i][3] = $i + 1;
|
$standings[$i][] = $standings[$i][3];
|
||||||
|
$standings[$i][3] = $i + 1;
|
||||||
|
} else {
|
||||||
|
$standings[$i][] = $i + 1;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
$standings[$i][] = $standings[$i][3];
|
if ($show_reviews) {
|
||||||
|
$standings[$i][] = $standings[$i][3];
|
||||||
|
}
|
||||||
|
|
||||||
$standings[$i][] = $standings[$i - 1][3];
|
$standings[$i][] = $standings[$i - 1][3];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user