Skip to content

Commit f9a8377

Browse files
committed
2023 Summer final を AHC に Open Contest を Marathon にクラス分け
1 parent f8838af commit f9a8377

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

atcoder-problems-frontend/src/api/APIClient.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ export const useMergedProblemMap = () => {
127127
}
128128

129129
const contestType = classifyContest(contest);
130-
if (contestType === "AHC") {
130+
if (contestType === "AHC" || contestType === "Marathon") {
131131
map.set(problem.id, { ...problem, point: undefined });
132132
} else {
133133
map.set(problem.id, problem);
@@ -303,7 +303,7 @@ export const useProblemModelMap = () => {
303303
return;
304304
}
305305
const contestType = classifyContest(contest);
306-
if (contestType === "AHC") {
306+
if (contestType === "AHC" || contestType === "Marathon") {
307307
return;
308308
}
309309

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,10 @@ export const classifyContest = (
5656
if (/^agc\d{3}$/.exec(contest.id)) {
5757
return "AGC";
5858
}
59-
if (/^ahc\d{3}$/.exec(contest.id)) {
59+
if (
60+
/^ahc\d{3}$/.exec(contest.id) ||
61+
["toyota2023summer-final"].includes(contest.id)
62+
) {
6063
return "AHC";
6164
}
6265

@@ -82,6 +85,7 @@ export const classifyContest = (
8285
contest.id
8386
) ||
8487
[
88+
"toyota2023summer-final-open",
8589
"genocon2021",
8690
"stage0-2021",
8791
"caddi2019",

0 commit comments

Comments
 (0)