@@ -48,10 +48,16 @@ export const classifyContest = (contest_id: string) => {
4848 return ContestType . MATH_AND_ALGORITHM ;
4949 }
5050
51+ // HACK: 2024年9月上旬時点では、「Chokudai SpeedRun 001」と「Chokudai SpeedRun 002」のみ該当。
52+ // 対象コンテストが増えた場合は、判定条件を見直す必要がある。
53+ if ( contest_id . startsWith ( 'chokudai_S' ) ) {
54+ return ContestType . OTHERS ;
55+ }
56+
5157 return null ;
5258} ;
5359
54- // priority: 0 (High) - 10 (Low)
60+ // priority: 0 (High) - 11 (Low)
5561// See:
5662// https://jsprimer.net/basic/map-and-set/
5763export const contestTypePriorities : Map < ContestType , number > = new Map ( [
@@ -66,6 +72,7 @@ export const contestTypePriorities: Map<ContestType, number> = new Map([
6672 [ ContestType . JOI , 8 ] ,
6773 [ ContestType . TESSOKU_BOOK , 9 ] ,
6874 [ ContestType . MATH_AND_ALGORITHM , 10 ] ,
75+ [ ContestType . OTHERS , 11 ] ,
6976] ) ;
7077
7178export function getContestPriority ( contestId : string ) : number {
@@ -112,5 +119,9 @@ export const getContestNameLabel = (contest_id: string) => {
112119 return 'アルゴリズムと数学' ;
113120 }
114121
122+ if ( contest_id . startsWith ( 'chokudai_S' ) ) {
123+ return contest_id . replace ( 'chokudai_S' , 'Chokudai SpeedRun ' ) ;
124+ }
125+
115126 return contest_id . toUpperCase ( ) ;
116127} ;
0 commit comments