Skip to content

Conversation

deboer-tim
Copy link
Member

This PR was started because we noticed that the problem format allows both -infinity and +infinity as maximum scores, but the Contest API doesn't allow either. After talking to Fredrik and Nicky we decided not to 'fix' this:

  • -infinity is being removed from the next version of the problem format.
  • +infinity is rarely used, and there's an easy workaround (just pick an arbitrarily high value) so we'll leave it.

While discussing this we found that the max_score was poorly defined as 'this is the max, but maybe not' and decided to simplify and make it more strict. I went with just removing the weak phrase: this IS the maximum score possible.

I also felt 'indicate' could be improved (went with 'determine') and 'in scoring contests' was redundant (removed it).

As with anything in the spec, we'd expect servers to enforce the max_score, but encourage clients to be liberal in what they accept. e.g. currently the resolver doesn't work if you score the maximum and then have another submission, but we'll fix this.

nickygerritsen
nickygerritsen previously approved these changes Jul 29, 2025
niemela
niemela previously approved these changes Aug 25, 2025
Copy link
Member

@niemela niemela left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add a requirement that the score reported for a problem is always between 0 and max_score.

This PR was started because we noticed that the problem format allows both
-infinity and +infinity as maximum scores, but the Contest API doesn't allow
either. After talking to Fredrik and Nicky we decided not to 'fix' this:
- -infinity is being removed from the next version of the problem format.
- +infinity is rarely used, and there's an easy workaround (just pick an
  arbitrarily high value) so we'll leave it.

While discussing this we found that the max_score was poorly defined as
'this is the max, but maybe not' and decided to simplify and make it more
strict. I went with just removing the weak phrase: this IS the maximum
score possible.

I also felt 'indicate' could be improved (went with 'determine') and
'in scoring contests' was redundant (removed it).

As with anything in the spec, we'd expect servers to enforce the max_score,
but encourage clients to be liberal in what they accept. e.g. currently
the resolver doesn't work if you score the maximum and then have another
submission, but we'll fix this.
Clarify judgement score is between 0 and the problem's max_score.
@deboer-tim
Copy link
Member Author

Rebased commit to latest, and added 'Score for this judgement, between 0 and the problem's max_score'. Please re-review and comment, or merge if you're good with it.

@niemela niemela merged commit 7e31f2a into icpc:master Sep 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants