diff options
| author | Davi Antônio da Silva Santos <antoniossdavi@gmail.com> | 2023-08-28 23:02:34 +0000 |
|---|---|---|
| committer | Davi Antônio da Silva Santos <antoniossdavi@gmail.com> | 2023-08-28 23:02:34 +0000 |
| commit | 683ce197baf740c7568e237734ddb584892172df (patch) | |
| tree | 90e8bff5f794e5c08fc2e404092d97562c1fb868 /src/fscore.php | |
| parent | 971ddcd239a999054a320774aee0a57a7dd6e8ee (diff) | |
| parent | 48cd64a927eda583347b70c223c4b5cfa28c9582 (diff) | |
| download | boca-683ce197baf740c7568e237734ddb584892172df.tar.gz boca-683ce197baf740c7568e237734ddb584892172df.zip | |
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'src/fscore.php')
| -rw-r--r-- | src/fscore.php | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/fscore.php b/src/fscore.php index 6faeb63..df3fce3 100644 --- a/src/fscore.php +++ b/src/fscore.php @@ -365,10 +365,13 @@ function DBScoreSite($contest, $site, $verifylastmile, $hor=-1, $data=null) { $resp[$user . '-' . $site]["problem"][$problem]["count"] = 0; while ($i<$n && $a[$i]["anstime"] <= $ta && $a[$i]["user"]==$user && $a[$i]["problem"]==$problem && $a[$i]["yes"]!='t') { - $time += (int) (($ct["contestpenalty"])/60); - $k++; - $i++; + // now CE, Name Mismatch and Contact Staff do not generate penalties + if($a[$i]["answer"] != '2' && $a[$i]["answer"] != '7' && $a[$i]["answer"] != '8') + $time += (int) (($ct["contestpenalty"])/60); + $k++; + $i++; } + $resp[$user . '-' . $site]["problem"][$problem]["count"] = $k; if ($i>=$n) break; |