mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
vjudge: codeforces: fix contest 921
This commit is contained in:
1 file changed
+1
-1
@@ -13,7 +13,7 @@ const logger = new Logger('remote/codeforces');
|
|||||||
|
|
||||||
function parseProblemId(id: string) {
|
function parseProblemId(id: string) {
|
||||||
const [, type, contestId, problemId] = id.startsWith('P921')
|
const [, type, contestId, problemId] = id.startsWith('P921')
|
||||||
? ['', '921', '01']
|
? ['', 'P', '921', '01']
|
||||||
: /^(P|GYM)(\d+)([A-Z]+[0-9]*)$/.exec(id);
|
: /^(P|GYM)(\d+)([A-Z]+[0-9]*)$/.exec(id);
|
||||||
if (type === 'GYM' && (+contestId) < 100000) {
|
if (type === 'GYM' && (+contestId) < 100000) {
|
||||||
return [type, ((+contestId) + 100000).toString(), problemId];
|
return [type, ((+contestId) + 100000).toString(), problemId];
|
||||||
|
|||||||
Reference in new issue
Block a user