mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
修复参加比赛的错误
This commit is contained in:
1 parent
32ad47e031
commit
f40e4e2c74
10 files changed
+62
-38
No files matched your search
@@ -1,6 +1,8 @@
|
||||
module.exports = {
|
||||
TEXT: 'ACM/ICPC',
|
||||
check: () => { },
|
||||
showScoreboard: () => true,
|
||||
showRecord: (tdoc, now) => now > tdoc.endAt,
|
||||
stat: (tdoc, journal) => {
|
||||
let naccept = {}, effective = {}, detail = [], accept = 0, time = 0;
|
||||
for (let j in journal) {
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
const ranked = require('../../lib/rank');
|
||||
|
||||
module.exports = {
|
||||
TEXT: 'OI',
|
||||
check: () => { },
|
||||
@@ -10,10 +12,13 @@ module.exports = {
|
||||
}
|
||||
return { score, detail };
|
||||
},
|
||||
showScoreboard(tdoc,now){
|
||||
return now>tdoc.endAt;
|
||||
showScoreboard(tdoc, now) {
|
||||
return now > tdoc.endAt;
|
||||
},
|
||||
scoreboard(is_export, _, tdoc, ranked_tsdocs, udict, dudict, pdict) {
|
||||
showRecord(tdoc, now) {
|
||||
return now > tdoc.endAt;
|
||||
},
|
||||
scoreboard(is_export, _, tdoc, ranked_tsdocs, udict, pdict) {
|
||||
let columns = [
|
||||
{ type: 'rank', value: _('Rank') },
|
||||
{ type: 'user', value: _('User') },
|
||||
@@ -49,5 +54,6 @@ module.exports = {
|
||||
rows.push(row);
|
||||
}
|
||||
return rows;
|
||||
}
|
||||
},
|
||||
rank: tdocs => ranked(tdocs, (a, b) => a.score == b.score)
|
||||
};
|
||||
Reference in new issue
Block a user