File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,10 @@ export const classifyContest = (contest_id: string) => {
1212 return ContestType . ARC ;
1313 }
1414
15+ if ( / ^ a g c \d { 3 } $ / . exec ( contest_id ) ) {
16+ return ContestType . AGC ;
17+ }
18+
1519 if ( contest_id . startsWith ( 'APG4b' ) ) {
1620 return ContestType . APG4B ;
1721 }
@@ -61,8 +65,8 @@ export const classifyContest = (contest_id: string) => {
6165 return null ;
6266} ;
6367
64- // priority: 0 (High) - 12 (Low)
65- // HACK: ARCの優先順位は暫定版
68+ // priority: 0 (High) - 13 (Low)
69+ // HACK: ARC、AGCの優先順位は暫定版
6670//
6771// See:
6872// https://jsprimer.net/basic/map-and-set/
@@ -79,7 +83,8 @@ export const contestTypePriorities: Map<ContestType, number> = new Map([
7983 [ ContestType . TESSOKU_BOOK , 9 ] ,
8084 [ ContestType . MATH_AND_ALGORITHM , 10 ] ,
8185 [ ContestType . ARC , 11 ] ,
82- [ ContestType . OTHERS , 12 ] ,
86+ [ ContestType . AGC , 12 ] ,
87+ [ ContestType . OTHERS , 13 ] ,
8388] ) ;
8489
8590export function getContestPriority ( contestId : string ) : number {
You can’t perform that action at this time.
0 commit comments