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