vjudge: codeforces: fix contest 921

This commit is contained in:
undefined committed 2023-07-20 15:19:58 +08:00
1 parent fcd1e4abd6
commit 3615d13ce2
1 file changed
+1 -1
+1 -1
View File
@@ -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];