Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There has been a change in the rating system of Codeforces (blog here).
Summary:
realRating - f(numRatedContestParticipations)
where the values of the functionf
at0, 1, ...
are[1400, 900, 550, 300, 150, 50, 0, 0, ...]
.This PR updates the default value to 1400, but cannot deal with the second change.
The problem:
2 weeks5 months since and there has been no update to the API. The only other way to get real ratings of users for the purpose of rating calculation is to calculate the complete rating history of every user to ever participate in any Codeforces contest, which is not a suitable task for an extension.If the real rating is available,
numRatedContestParticipations
can be calculated from the difference between real and fake ratings.numRatedContestParticipations
could be conveniently available for all users through any API endpoint, the real rating can be obtained from the fake rating. Unfortunately, it is not. The alternate is to either query each individual user's rating history for every participant or query the rating changes for every contest on Codeforces ever, both of which again are not suitable tasks for an extension.TL;DR: The Codeforces API is lacking and this recent change makes it impossible to predict rating changes accurately.