Skip to content

Commit 326b539

Browse files
committed
✨ Add agc to contest type (#1282)
1 parent fc3e9e2 commit 326b539

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

src/lib/utils/contest.ts

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ export const classifyContest = (contest_id: string) => {
1212
return ContestType.ARC;
1313
}
1414

15+
if (/^agc\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

8590
export function getContestPriority(contestId: string): number {

0 commit comments

Comments
 (0)