<% 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]); return $ss; }, $s); // 特殊转义 $s = str_replace("
", "\n", $s); // 把
中间的html字符转成原始字符
      $s = preg_replace_callback('/
(.*?)<\/pre>/s', function ($matches) {
        $content = $matches[1];
        $content = htmlspecialchars_decode($content, ENT_QUOTES);
        $content = str_replace("<", "<", $content);
        $content = str_replace(">", ">", $content);
        $content = str_replace("&", "&", $content);
        $content = str_replace(""", "\"", $content);
        $content = str_replace("'", "'", $content);
        return "
" . $content . "
"; }, $s); return $s; } ?>

Markdown原文
' . 
                  $row['description'] .
                '
'; } ?>

", ">", $sinput); $soutput = str_replace("<", "<", $row['sample_output']); $soutput = str_replace(">", ">", $soutput); ?> 0 && $sinput != "\n" || isset($_GET['spa'])) { ?>

0 && $soutput != "\n" || isset($_GET['spa'])) { ?>

$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"; ?>