=60) { $second = $length%60; if ($second>0 && $second<10) { $result = '0'.$second.' '.$MSG_SECONDS;} else if ($second>0) { $result = $second.' '.$MSG_SECONDS; } $length = floor($length/60); if ($length >= 60) { $minute = $length%60; if ($minute==0) { if ($result != '') { $result = '00'.' '.$MSG_MINUTES.' '.$result; } } else if ($minute>0 && $minute<10) { if ($result != '') { $result = '0'.$minute.' '.$MSG_MINUTES.' '.$result;} } else { $result = $minute.' '.$MSG_MINUTES.' '.$result; } $length = floor($length/60); if ($length >= 24) { $hour = $length%24; if ($hour==0) { if ($result != '') { $result = '00'.' '.$MSG_HOURS.' '.$result; } } else if ($hour>0 && $hour<10) { if($result != '') { $result = '0'.$hour.' '.$MSG_HOURS.' '.$result; } } else { $result = $hour.' '.$MSG_HOURS.' '.$result; } $length = floor($length / 24); $result = $length .$MSG_DAYS.' '.$result; } else { $result = $length.' '.$MSG_HOURS.' '.$result; } } else { $result = $length.' '.$MSG_MINUTES.' '.$result; } } else { $result = $length.' '.$MSG_SECONDS; } return $result; } ?>

: -


:
Lock Board Time:
$end_time) { echo "$MSG_Ended"; } else if ($now<$start_time) { echo "$MSG_Start "; echo "$MSG_TotalTime"." ".formatTimeLength($end_time-$start_time); } else { echo "$MSG_Running "; echo "$MSG_LeftTime"." ".formatTimeLength($end_time-$now); } ?>

: $end_time) echo "".$MSG_End.""; else if ($now<$start_time) echo "".$MSG_Start.""; else echo "".$MSG_Running.""; ?>    : ".$MSG_Public.""; else echo "".$MSG_Private.""; ?>
:
:


Download

滚榜'; if($OJ_MEMCACHE) echo 'Replay'; } } ?>
$PID[$i]"; } else { //over contest/exam time //check the problem will be use remained contest/exam $sql = "SELECT `problem_id` FROM `contest_problem` WHERE (`contest_id`=? AND `num`=?)"; $tresult = pdo_query($sql, $cid, $i); $tpid = $tresult[0][0]; $sql = "SELECT `problem_id` FROM `problem` WHERE `problem_id`=? AND `problem_id` IN ( SELECT `problem_id` FROM `contest_problem` WHERE `contest_id` IN ( SELECT `contest_id` FROM `contest` WHERE (`defunct`='N' AND now()<`end_time`) ) )"; $tresult = pdo_query($sql, $tpid); if (intval($tresult) != 0) //if the problem will be use remained contes/exam */ echo ""; else echo ""; } } ?> "; else echo ""; $nick = $U[$i]->nick; echo ""; $uuid = $U[$i]->user_id; if (isset($_GET['user_id']) && $uuid==$_GET['user_id']) echo ""; echo ""; $usolved = $U[$i]->solved; echo ""; echo ""; for ($j=0; $j<$pid_cnt; $j++) { $bg_color = "eeeeee"; if (isset($U[$i]->p_ac_sec[$j])&&$U[$i]->p_ac_sec[$j]>0){ $aa = 0x33+$U[$i]->p_wa_num[$j]*32; $aa = $aa>0xaa?0xaa:$aa; $aa = dechex($aa); $bg_color = "$aa"."ff"."$aa"; //$bg_color="aaffaa"; if ($uuid==$first_blood[$j]) { $bg_color = "aaaaff"; } } else if(isset($U[$i]->p_wa_num[$j]) && $U[$i]->p_wa_num[$j]>0) { $aa = 0xaa-$U[$i]->p_wa_num[$j]*10; $aa = $aa>16?$aa:16; $aa = dechex($aa); $bg_color = "ff$aa$aa"; } echo "\n"; } ?>
$PID[$i]".$PID[$i]."
"; if ($nick[0]!="*") echo $rank++; else echo "*"; echo ""; else echo""; echo "$uuid"; echo "".htmlentities($U[$i]->nick,ENT_QUOTES,"UTF-8")."$usolved".sec2str($U[$i]->time).""; if (isset($U[$i])) { if (isset($U[$i]->p_ac_sec[$j]) && $U[$i]->p_ac_sec[$j]>0) echo sec2str($U[$i]->p_ac_sec[$j]); if (isset($U[$i]->p_wa_num[$j]) && $U[$i]->p_wa_num[$j]>0) echo "(-".$U[$i]->p_wa_num[$j].")"; } } echo "
$uid  "; } ?>