Skip to content

Commit dc92d7b

Browse files
authored
Merge pull request #1393 from H20-DHMO/#1383-fix-screen_toyota_properly
トヨタコンを適切にふるい分ける
2 parents d697d5f + f9a8377 commit dc92d7b

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
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: 9 additions & 3 deletions
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

@@ -78,8 +81,11 @@ export const classifyContest = (
7881
/(^Chokudai Contest||^HACK TO THE FUTURE|Asprova|Heuristics Contest)/.exec(
7982
contest.title
8083
) ||
81-
/(^future-meets-you-contest|^hokudai-hitachi)/.exec(contest.id) ||
84+
/(^future-meets-you-contest|^hokudai-hitachi|^toyota-hc)/.exec(
85+
contest.id
86+
) ||
8287
[
88+
"toyota2023summer-final-open",
8389
"genocon2021",
8490
"stage0-2021",
8591
"caddi2019",
@@ -97,7 +103,7 @@ export const classifyContest = (
97103
/(CODE FESTIVAL|^DISCO|||Indeed)/.exec(
98104
contest.title
99105
) ||
100-
/(^Donuts|^dwango|^DigitalArts|^Code Formula|)/.exec(
106+
/(^Donuts|^dwango|^DigitalArts|^Code Formula||^Toyota)/.exec(
101107
contest.title
102108
)
103109
) {

0 commit comments

Comments
 (0)