<?php global $user; if (isset($mo_request[1]) && is_numeric($mo_request[1])) { $solution = new Solution($mo_request[1]); $solution->load(); if (!$solution->getSID() || $solution->getInfo('uid') != $user->getUID()) { require_once $mo_theme_floder . '404.php'; } echo '<h2>提交:#' . $solution->getInfo('id') . '</h2>'; echo '用户:#' . $solution->getInfo('uid') . '<br>'; echo '问题:#<a href="/?r=problem/' . $solution->getInfo('pid') . '">' . $solution->getInfo('pid') . '</a><br>'; echo '语言:#' . $solution->getInfo('language') . '<br>'; echo '评测机:#' . $solution->getInfo('client') . '<br><br>'; if ($solution->getInfo('state') <= 0) { echo '评测中,当前状态:' . $solution->getInfo('state') . '<br>'; } else { echo '总耗时:' . $solution->getInfo('used_time') . 'MS 最大使用内存:' . $solution->getInfo('used_memory') . 'KB<br>'; echo '<table width="100%" border="1"> <tbody> <tr> <td width="20%"><strong>测试数据</strong></td> <td width="30%"><strong>耗时(MS)</strong></td> <td width="30%"><strong>内存(KB)</strong></td> <td width="20%"><strong>结果</strong></td> </tr>'; $detail_time = explode(' ', $solution->getInfo('detail_time')); $detail_memory = explode(' ', $solution->getInfo('detail_memory')); $detail_result = explode(' ', $solution->getInfo('detail_result')); $turn = count($detail_result); for ($i = 0; $i < $turn && $detail_result[$i]; ++$i) {