diff options
| author | Daniel Saad Nogueira Nunes <danielsaad@users.noreply.github.com> | 2023-08-25 01:13:57 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-08-25 01:13:57 +0000 |
| commit | b7c5e309c728840a42eeec3113f2f58f6834eed9 (patch) | |
| tree | 693ba00b66b0c25bb3498a5677cafc89dd7bf9dc | |
| parent | 98d9dd26e241b0a7a494af02262ab5e1f7eb3aa4 (diff) | |
| download | boca-b7c5e309c728840a42eeec3113f2f58f6834eed9.tar.gz boca-b7c5e309c728840a42eeec3113f2f58f6834eed9.zip | |
fscore.php: now CE, Name Mismatch and Contact staff do not generate penalties. (#31)
| -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; |