From ff16bfbc84e839b430ab4e59ad85829ac5fee749 Mon Sep 17 00:00:00 2001 From: Baoshuo Date: Sat, 12 Nov 2022 19:09:47 +0800 Subject: [PATCH] fix(web/problem): limits default value --- web/app/controllers/problem.php | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/web/app/controllers/problem.php b/web/app/controllers/problem.php index 059cc80..b226b5c 100644 --- a/web/app/controllers/problem.php +++ b/web/app/controllers/problem.php @@ -243,8 +243,8 @@ if (UOJContest::cur()) { getVal('time_limit', null) : null; - $memory_limit = $conf instanceof UOJProblemConf ? $conf->getVal('memory_limit', null) : null; + $time_limit = $conf instanceof UOJProblemConf ? $conf->getVal('time_limit', 1) : null; + $memory_limit = $conf instanceof UOJProblemConf ? $conf->getVal('memory_limit', 256) : null; ?>
时间限制: @@ -285,16 +285,13 @@ if (UOJContest::cur()) {
- - - + +