aboutsummaryrefslogtreecommitdiff
path: root/src/fscore.php
diff options
context:
space:
mode:
authorDavi Antônio da Silva Santos <antoniossdavi@gmail.com>2023-08-28 23:02:34 +0000
committerDavi Antônio da Silva Santos <antoniossdavi@gmail.com>2023-08-28 23:02:34 +0000
commit683ce197baf740c7568e237734ddb584892172df (patch)
tree90e8bff5f794e5c08fc2e404092d97562c1fb868 /src/fscore.php
parent971ddcd239a999054a320774aee0a57a7dd6e8ee (diff)
parent48cd64a927eda583347b70c223c4b5cfa28c9582 (diff)
downloadboca-683ce197baf740c7568e237734ddb584892172df.tar.gz
boca-683ce197baf740c7568e237734ddb584892172df.zip
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'src/fscore.php')
-rw-r--r--src/fscore.php9
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;