=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.""; ?>
:
:


$language_name[$i]"; else echo "";//""; $i++; } ?> "; else echo ""; if (time()<$end_time) { //during contest/exam time echo ""; } 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 ""; } for ($j=0; $j".$R[$i][$j].""; } echo ""; } echo ""; echo ""; for ($j=0 ; $j".$R[$i][$j].""; } echo ""; ?>
AC PE WA TLE MLE OLE RE CE TR | Total
$PID[$i]$PID[$i]".$PID[$i]."
Total