的所有赛后总结

UOJUserBlog::id(), "has_participated" => 1]; $tail = 'order by start_time desc, id desc'; $config = [ 'page_len' => 10, 'div_classes' => ['card', 'card-default', 'table-responsive'], 'table_classes' => ['table', 'table-bordered', 'text-center', 'align-middle', 'uoj-table', 'mb-0'], ]; $header_row = ''; $header_row .= ''; $header_row .= '' . UOJLocale::get('contests::contest name') . ''; $header_row .= '' . UOJLocale::get('problems::problem') . ''; $header_row .= '' . UOJLocale::get('contests::problem self review') . ''; $header_row .= '' . UOJLocale::get('contests::contest self review') . ''; $header_row .= ''; $parsedown = HTML::parsedown(['username_with_color' => true]); $purifier = HTML::purifier_inline(); $print_row = function ($row) use ($parsedown, $purifier) { $contest = UOJContest::query($row['contest_id']); $problems = $contest->getProblemIDs(); $result = ''; for ($i = 0; $i < count($problems); $i++) { $problem = UOJContestProblem::query($problems[$i], $contest); $review = DB::selectSingle([ "select content", "from contests_reviews", "where", [ "contest_id" => $contest->info['id'], "problem_id" => $problem->info['id'], "poster" => UOJUserBlog::id(), ] ]); $result .= ''; if ($i == 0) { $result .= '' . $contest->info['name'] . ''; } $result .= '' . $problem->getLink(['with' => 'letter', 'simplify' => true]) . ''; $result .= '' . $purifier->purify($review ? $parsedown->line($review) : '') . ''; if ($i == 0) { $review = DB::selectSingle([ "select content", "from contests_reviews", "where", [ "contest_id" => $contest->info['id'], "problem_id" => -1, "poster" => UOJUserBlog::id(), ] ]); $result .= '' . $purifier->purify($review ? $parsedown->line($review) : '') . ''; } $result .= ''; } echo $result; }; echoLongTable($col_names, $from, $cond, $tail, $header_row, $print_row, $config); ?>