<% if (problem.allowedEdit && !problem.is_public) { %>
未公开
<% } %>"; //echo "
$MSG_PROBLEM".$row['problem_id']."--". $row['title']."
"; //echo "
$id: ".$row['title']."
"; } else { $id = $row['problem_id']; //echo "
$MSG_PROBLEM ".$PID[$pid].": ".$row['title']."
"; echo "$MSG_PROBLEM " . $PID[$pid] . ": " . $row['title']; } if ($row['defunct'] == "Y") echo "
$MSG_RESERVED
"; ?>
: MB
: S
:
:
:
:
$MSG_SUBMIT"; echo "
$MSG_SUBMIT_RECORD
"; echo "
$MSG_STATISTICS
"; if ($OJ_BBS) echo "
$MSG_BBS
"; } else { echo "
$MSG_RETURN_CONTEST
"; if ($contest_is_over) echo "
$MSG_SUBMIT
"; else echo "
$MSG_SUBMIT
"; echo "
$MSG_GLOBAL$MSG_SUBMIT_RECORD
"; echo "
$MSG_THIS_CONTEST$MSG_SUBMIT_RECORD
"; } if (!file_exists($OJ_DATA . "/" . $id . "/solution.name")) echo "
$MSG_SHOW_OFF
"; ?>
)'>
" . $s . ""; // 删除代码块里的html字符防止引起混乱 $s = preg_replace_callback('/(```.*?```|`[^`]*`)/s', function ($matches) { $ss = str_replace('
', '', $matches[0]); // 大于小于号 $ss = htmlspecialchars_decode($ss, ENT_QUOTES | ENT_HTML5); return $ss; }, $s); // 特殊转义 $s = str_replace("
", "\n", $s); return $s; } ?>
' . $MSG_ADMIN_ONLY . ' - ' . $MSG_DESCRIPTION . ' ' . $MSG_SOURCE_CODE . '
' . htmlspecialchars($row['description'], ENT_QUOTES, 'UTF-8') . '
'; } ?>
", ">", $sinput); $soutput = str_replace("<", "<", $row['sample_output']); $soutput = str_replace(">", ">", $soutput); ?> 0 && $sinput != "\n" || isset($_GET['spa'])) { ?>
0 && $soutput != "\n" || isset($_GET['spa'])) { ?>
" class="ui medium label">
$MSG_SUBMIT"; echo "
$MSG_SUBMIT_RECORD
"; echo "
$MSG_STATISTICS
"; if ($OJ_BBS) echo "
$MSG_BBS
"; } else { echo "
$MSG_RETURN_CONTEST
"; if ($contest_is_over) echo "
$MSG_SUBMIT
"; else echo "
$MSG_SUBMIT
"; echo "
$MSG_SUBMIT_RECORD
"; } if (!file_exists($OJ_DATA . "/" . $id . "/solution.name")) echo "
$MSG_SHOW_OFF
"; ?>