Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 84dc403

Browse files
committed
Fix #175, AllProblemsTable
1 parent 0ba11f2 commit 84dc403

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

‎src/pages/TablePage/AllProblemsTable.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,8 @@ export const AllProblemsTable: React.FC<Props> = (props) => {
3535
.filter((a) => a.No !== null)
3636
.sort((a, b) => (a.No as ProblemNo) - (b.No as ProblemNo))
3737
.reduce((prevMap, problem) => {
38-
const key = Math.min(
39-
Math.floor(((problem.No as ProblemNo) - 1) / 100),
40-
29
41-
);
38+
const no = problem.No as ProblemNo;
39+
const key = Math.floor(no < 3000 ? (no - 1) / 100 : no / 100);
4240
if (!prevMap.has(key)) {
4341
prevMap.set(key, []);
4442
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /