From df6f7ad3541963da2de0fd66b30ddbf3c2367633 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E6=B5=A9=E6=96=8C?= Date: Wed, 5 Jul 2017 13:27:02 +0800 Subject: [PATCH] Update contestrank-oi.php --- trunk/web/contestrank-oi.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/trunk/web/contestrank-oi.php b/trunk/web/contestrank-oi.php index 7075880f70c..cffbfd7d4f4 100644 --- a/trunk/web/contestrank-oi.php +++ b/trunk/web/contestrank-oi.php @@ -61,10 +61,10 @@ function Add($pid,$sec,$res){ function s_cmp($A,$B){ // echo "Cmp....
"; - if ($A->solved!=$B->solved) return $A->solved<$B->solved; + if ($A->total!=$B->total) return $A->total<$B->total; else { - if($A->total!=$B->total) - return $A->total<$B->total; + if($A->solved!=$B->solved) + return $A->solved<$B->solved; else return $A->time>$B->time; }