diff --git a/db/luogu_remote_judge.sql b/db/luogu_remote_judge.sql new file mode 100644 index 0000000..18b51de --- /dev/null +++ b/db/luogu_remote_judge.sql @@ -0,0 +1,9 @@ +ALTER TABLE + `problems` +ADD + `type` varchar(20) NOT NULL DEFAULT 'local'; + +ALTER TABLE + `problems` +ADD + KEY `type` (`type`); diff --git a/web/app/libs/uoj-luogu-lib.php b/web/app/libs/uoj-luogu-lib.php index 220a074..1a57a5a 100644 --- a/web/app/libs/uoj-luogu-lib.php +++ b/web/app/libs/uoj-luogu-lib.php @@ -49,6 +49,7 @@ function parseLuoguProblemData($problem) { 'time_limit' => (float)max($problem['limits']['time']) / 1000.0, 'memory_limit' => (float)max($problem['limits']['memory']) / 1024.0, 'statement' => renderMarkdown($statement), + 'statement_md' => $statement, ]; }