Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/lib/utils/contest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ export const classifyContest = (contest_id: string) => {
// HACK: As of December 2024, the following contests are applicable.
// Note: The classification logic may need to be revised when new contests are added.
const ABC_LIKE: ContestPrefix = {
aising2020: 'エイシング プログラミング コンテスト 2020',
panasonic2020: 'パナソニックプログラミングコンテスト 2020',
} as const;
const abcLikePrefixes = new Set(getContestPrefixes(ABC_LIKE));
Expand Down Expand Up @@ -162,7 +163,10 @@ const atCoderUniversityPrefixes = getContestPrefixes(ATCODER_UNIVERSITIES);
const ATCODER_OTHERS: ContestPrefix = {
chokudai_S: 'Chokudai SpeedRun',
'code-festival-2014-final': 'Code Festival 2014 決勝',
'code-thanks-festival': 'CODE THANKS FESTIVAL',
donuts: 'Donutsプロコンチャレンジ',
indeednow: 'Indeedなう',
'dwacon2017-prelims': '第3回 ドワンゴからの挑戦状 予選',
'mujin-pc-2016': 'Mujin Programming Challenge 2016',
'mujin-pc-2018': 'Mujin Programming Challenge 2018',
'tenka1-2016-final': '天下一プログラマーコンテスト2016本戦',
Expand Down
20 changes: 20 additions & 0 deletions src/test/lib/utils/test_cases/contest_type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,10 @@ export const agc = agcContestIds.map((contestId) =>
);

export const abcLike = [
createTestCaseForContestType('AISing 2020')({
contestId: 'aising2020',
expected: ContestType.ABC_LIKE,
}),
createTestCaseForContestType('Panasonic 2020')({
contestId: 'panasonic2020',
expected: ContestType.ABC_LIKE,
Expand Down Expand Up @@ -295,6 +299,14 @@ export const atCoderOthers = [
contestId: 'code-festival-2014-final',
expected: ContestType.OTHERS,
}),
createTestCaseForContestType('CODE THANKS FESTIVAL 2017')({
contestId: 'code-thanks-festival-2017',
expected: ContestType.OTHERS,
}),
createTestCaseForContestType('CODE THANKS FESTIVAL 2018')({
contestId: 'code-thanks-festival-2018',
expected: ContestType.OTHERS,
}),
createTestCaseForContestType('Donuts Procon Challenge 2014')({
contestId: 'donuts-live2014',
expected: ContestType.OTHERS,
Expand All @@ -303,6 +315,14 @@ export const atCoderOthers = [
contestId: 'donuts-2015',
expected: ContestType.OTHERS,
}),
createTestCaseForContestType('IndeedNow Qual B')({
contestId: 'indeednow-qualb',
expected: ContestType.OTHERS,
}),
createTestCaseForContestType('第3回 ドワンゴからの挑戦状 予選')({
contestId: 'dwacon2017-prelims',
expected: ContestType.OTHERS,
}),
createTestCaseForContestType('MUJIN Programming Challenge 2016')({
contestId: 'mujin-pc-2016',
expected: ContestType.OTHERS,
Expand Down
Loading