'friendly', 'time_font_size' => 'normal', 'judge_time_hidden' => true, 'table_config' => [ 'div_classes' => ['card', 'mb-3', 'table-responsive'], 'table_classes' => ['table', 'mb-0', 'uoj-table', 'text-center'], ] ]; $q_problem_id = UOJRequest::get('problem_id', 'validateUInt', null); $q_submitter = UOJRequest::get('submitter', 'validateUsername', null); $q_min_score = UOJRequest::get('min_score', 'validateUFloat', null); $q_max_score = UOJRequest::get('max_score', 'validateUFloat', null); $q_lang = UOJRequest::get('language', 'is_short_string', null); if ($q_problem_id !== null) { $problem = UOJProblem::query($q_problem_id); if ($problem) { $config['problem'] = $problem; } $conds['problem_id'] = $q_problem_id; } if ($q_submitter !== null) { $conds['submitter'] = $q_submitter; } if ($q_min_score !== null) { $conds[] = ['score', '>=', $q_min_score]; } if ($q_max_score !== null) { $conds[] = ['score', '<=', $q_max_score]; } if ($q_lang != null) { $conds['language'] = $q_lang; } if (!$conds) { $conds = '1'; } function echoSubmissionItem($info) { $submission = new UOJSubmission($info); $submission->setProblem(); $submitter = UOJUser::query($submission->info['submitter']); $cfg = [ 'show_actual_score' => $submission->viewerCanSeeScore(Auth::user()), 'unknown_char' => '?', 'result_badge' => true, ]; echo '