Skip to content

Commit 8b30524

Browse files
committed
Fix AHC incorrect classification
1 parent 281ba79 commit 8b30524

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

atcoder-problems-frontend/src/utils/ContestClassifier.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,10 @@ export const classifyContest = (contest: Contest): ContestCategory => {
4949
return "AGC";
5050
}
5151

52+
if (/^ahc\d{3}$/.exec(contest.id)) {
53+
return "AHC";
54+
}
55+
5256
if (isRatedContest(contest)) {
5357
return classifyOtherRatedContest(contest);
5458
}
@@ -63,9 +67,6 @@ export const classifyContest = (contest: Contest): ContestCategory => {
6367
return "JAG";
6468
}
6569

66-
if (/^ahc\d{3}$/.exec(contest.id)) {
67-
return "AHC";
68-
}
6970
if (
7071
/(^Chokudai Contest||^HACK TO THE FUTURE|Asprova|Heuristics Contest)/.exec(
7172
contest.title

0 commit comments

Comments
 (0)