core: add contest score ratio (#765)

Co-authored-by: panda <panda_dtdyy@outlook.com>
This commit is contained in:
undefinedandpanda authored and GitHub committed 2024-04-01 19:25:18 +08:00
1 parent 9013c4eaa6
commit e25db178fd
11 files changed
+121 -23

No files matched your search

+3 -2
View File
@@ -358,9 +358,9 @@ export interface JudgeRequest extends Omit<RecordDoc, '_id' | 'testCases'> {
export interface ScoreboardNode {
type: 'string' | 'rank' | 'user' | 'email' | 'record' | 'records' | 'problem' | 'solved' | 'time' | 'total_score';
value: string;
value: string; // 显示分数
raw?: any;
score?: number;
score?: number; // 原始分数(100,不含赛制加成)
style?: string;
hover?: string;
}
@@ -396,6 +396,7 @@ export interface Tdoc extends Document {
unlocked?: boolean;
autoHide?: boolean;
balloon?: Record<number, string>;
score?: Record<number, number>;
/**
* In hours