@@ -17,11 +17,12 @@ import {
17
17
combineTableColorList ,
18
18
} from "../../utils/TableColor" ;
19
19
import { ProblemLink } from "../../components/ProblemLink" ;
20
- import { ContestLink , getRatedTarget } from "../../components/ContestLink" ;
20
+ import { ContestLink } from "../../components/ContestLink" ;
21
21
import ProblemModel from "../../interfaces/ProblemModel" ;
22
22
import { SubmitTimespan } from "../../components/SubmitTimespan" ;
23
23
import { RatingInfo } from "../../utils/RatingInfo" ;
24
24
import { ProblemPoint } from "../../components/Problempoint" ;
25
+ import { classifyContest } from "../../utils/ContestClassifier" ;
25
26
26
27
interface Props {
27
28
contests : Contest [ ] ;
@@ -39,7 +40,8 @@ interface Props {
39
40
const getProblemHeaderAlphabet = ( problem : MergedProblem , contest : Contest ) => {
40
41
const list = problem . title . split ( "." ) ;
41
42
if ( list . length === 0 ) return "" ;
42
- if ( list [ 0 ] === "H" && getRatedTarget ( contest ) < 2000 ) return "Ex" ;
43
+ if ( list [ 0 ] === "H" && classifyContest ( contest ) . startsWith ( "ABC" ) )
44
+ return "Ex" ;
43
45
return list [ 0 ] ;
44
46
} ;
45
47
@@ -116,7 +118,7 @@ const AtCoderRegularTableSFC: React.FC<Props> = (props) => {
116
118
)
117
119
. filter ( ( alphabet ) => alphabet . length > 0 ) ;
118
120
119
- let header = Array . from ( new Set ( headerList ) ) ;
121
+ let header = Array . from ( new Set ( headerList ) ) . sort ( ) ;
120
122
if ( header . includes ( "Ex" ) )
121
123
header = header . filter ( ( c ) => c != "Ex" ) . concat ( "Ex" ) ;
122
124
0 commit comments