Skip to content
Open
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
3 changes: 3 additions & 0 deletions atcoder-problems-frontend/src/pages/TablePage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ export const TablePage: React.FC<OuterProps> = (props) => {
"ABC",
"ARC",
"AGC",
"AWC",
"ABC-Like",
"ARC-Like",
"AGC-Like",
Expand All @@ -146,6 +147,8 @@ export const TablePage: React.FC<OuterProps> = (props) => {
? "AtCoder Regular Contest"
: activeTab === "AGC"
? "AtCoder Grand Contest"
: activeTab === "AWC"
? "AtCoder Weekday Contest"
: activeTab === "PAST"
? "PAST"
: `${activeTab} Contest`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -165,11 +165,19 @@ export const PieChartBlock = (props: Props) => {
submissionsMap,
props.userId
);
const awcSolved = solvedCountForPieChart(
Array.from(contestToProblems).filter(([contestId]) =>
contestId.startsWith("awc")
),
submissionsMap,
props.userId
);
return (
<>
<PieCharts problems={abcSolved} title="AtCoder Beginner Contest" />
<PieCharts problems={arcSolved} title="AtCoder Regular Contest" />
<PieCharts problems={agcSolved} title="AtCoder Grand Contest" />
<PieCharts problems={awcSolved} title="AtCoder Weekday Contest" />
</>
);
};
Expand Down
4 changes: 4 additions & 0 deletions atcoder-problems-frontend/src/utils/ContestClassifier.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ export const ContestCategories = [
"ABC",
"ARC",
"AGC",
"AWC",
"ABC-Like",
"ARC-Like",
"AGC-Like",
Expand Down Expand Up @@ -56,6 +57,9 @@ export const classifyContest = (
if (/^agc\d{3}$/.exec(contest.id)) {
return "AGC";
}
if (/^awc\d{4}$/.exec(contest.id)) {
return "AWC";
}
if (
/^ahc\d{3}$/.exec(contest.id) ||
["toyota2023summer-final"].includes(contest.id)
Expand Down
4 changes: 4 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
# yarn lockfile v1