mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 09:46:28 +08:00
core: 添加IOI赛制
This commit is contained in:
1 parent
ac40fa9da8
commit
e8dcd97561
2 files changed
+9
-2
No files matched your search
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "hydrooj",
|
"name": "hydrooj",
|
||||||
"version": "2.13.45",
|
"version": "2.13.46",
|
||||||
"bin": "bin/hydrooj.js",
|
"bin": "bin/hydrooj.js",
|
||||||
"main": "dist/loader.js",
|
"main": "dist/loader.js",
|
||||||
"typings": "dist/loader.d.ts",
|
"typings": "dist/loader.d.ts",
|
||||||
|
|||||||
@@ -205,6 +205,13 @@ const oi: ContestRule = {
|
|||||||
rank: (tsdocs) => ranked(tsdocs, (a, b) => a.score === b.score),
|
rank: (tsdocs) => ranked(tsdocs, (a, b) => a.score === b.score),
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const ioi: ContestRule = {
|
||||||
|
...oi,
|
||||||
|
TEXT: 'IOI',
|
||||||
|
showRecord: () => true,
|
||||||
|
showScoreboard: () => true,
|
||||||
|
};
|
||||||
|
|
||||||
const homework: ContestRule = {
|
const homework: ContestRule = {
|
||||||
TEXT: 'Assignment',
|
TEXT: 'Assignment',
|
||||||
check: () => { },
|
check: () => { },
|
||||||
@@ -347,7 +354,7 @@ const homework: ContestRule = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export const RULES: ContestRules = {
|
export const RULES: ContestRules = {
|
||||||
acm, oi, homework,
|
acm, oi, homework, ioi,
|
||||||
};
|
};
|
||||||
|
|
||||||
function _getStatusJournal(tsdoc) {
|
function _getStatusJournal(tsdoc) {
|
||||||
|
|||||||
Reference in new issue
Block a user