Closed aberent closed 4 years ago
Thank you for reporting!
It seems we need to add a new URL pattern.
URL https://codeforces.com/edu/contest/269100/problem/A is not redirected to URL https://codeforces.com/edu/course/2/lesson/2/1/practice/contest/269100/problem/A, so we cannot ignore /edu/...
part.
Fixing seems easy. There is already another unusual URL pattern (GYM problems), so we need to just a new one for EDU.
Yes, not too bad. I am creating a pull request to fix it. Apart from adding a new pattern, the URLs generated from the contest ids are not valid. One can lesson from the problem URL, but one can't get it from the contest id, so doing this would require some refactoring. In my initial pull request I will simply disable context information for EDU problems (as is done for problemset problems).
Thank you for reporting! It seems we need to add a new URL pattern. URL https://codeforces.com/edu/contest/269100/problem/A is not redirected to URL https://codeforces.com/edu/course/2/lesson/2/1/practice/contest/269100/problem/A, so we cannot ignore
/edu/...
part.Fixing seems easy. There is already another unusual URL pattern (GYM problems), so we need to just a new one for EDU.
Description
Codeforces have recently added an educational section (see https://codeforces.com/edu/courses) containing videos and associated practice problems. The problems have URLs such as https://codeforces.com/edu/course/2/lesson/2/1/practice/contest/269100/problem/A which oj doesn't recognise as valid problem URLs.
The source of this seems to be patterns used for Codeforces URLs in onlinejudge/service/codeforces.py.
Error log
Other notes