Skip to content

Commit 4582d4c

Browse files
committed
feat(crawler): add codeforces::gym
Merged in to codeforces related to #991
1 parent 903e15f commit 4582d4c

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

crawler/__test__/crawlers.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ describe('codeforces', () => {
125125
checkRes(res)
126126

127127
expect(new Set(res.solvedList)).toMatchObject(new Set([
128-
'754-B', '165-E', '492-E', '338-D', '333-A', '703-A', '540-C', '680-B', '680-A', '676-A', '450-B', '667-A', '667-C',
128+
'754B', '165E', '492E', '338D', '333A', '703A', '540C', '680B', '680A', '676A', '450B', '667A', '667C',
129129
]))
130130
})
131131

crawler/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ crawlers:
4848
codeforces:
4949
meta:
5050
title: CodeForces
51-
description:
51+
description: Including CodeForces::Gym
5252
url: http://codeforces.com/
5353
uva:
5454
meta:

crawler/crawlers/codeforces.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ async function queryForNumber(username, pageCount, acSet) {
6464
problemArray.forEach(function (element) {
6565
if (element.verdict === 'OK') {
6666
const problem = element.problem
67-
const title = problem.contestId + '-' + problem.index
67+
const title = problem.contestId + problem.index
6868
acSet.add(title)
6969
}
7070
})

crawler/crawlers/vjudge.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ function mapOjName(nameInVjudge) {
9191
'HYSBZ': 'dashiye',
9292
// it looks like a typo of vjudge
9393
'EIJudge': 'eljudge',
94+
'Gym': 'codeforces',
9495
}
9596

9697
if (simpleMapOj.has(nameInVjudge.toLowerCase())) {

0 commit comments

Comments
 (0)