Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Penalty time in RELTIME #151

Merged
merged 3 commits into from
Jul 24, 2023
Merged

Penalty time in RELTIME #151

merged 3 commits into from
Jul 24, 2023

Conversation

deboer-tim
Copy link
Member

Contest penalty_time is the only time that's in integer minutes, and one of only 3 places where we even say minutes in the spec. As per issue #150, it also blocks non-integer penalty times.

This changes it to use RELTIME, which improves both issues. It does not attempt to address anything else in issue 150, namely no attempt to add additional scoring algorithms.

nickygerritsen
nickygerritsen previously approved these changes Jun 26, 2023
Copy link
Collaborator

@eldering eldering left a comment

Choose a reason for hiding this comment

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

I think the score.total_time property in the scoreboard row objects should also be changed to RELTIME.

And while we're at it, I think we should also change the time property in the problem sub-objects in scoreboard rows from integer to RELTIME.

I think then we've removed all explicit references to time in minutes.

@deboer-tim
Copy link
Member Author

Added another commit to update scoreboard times to RELTIME as well.

@deboer-tim deboer-tim marked this pull request as ready for review July 10, 2023 18:45
Copy link
Collaborator

@nickygerritsen nickygerritsen left a comment

Choose a reason for hiding this comment

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

Line 2195 should also be RELTIME I think?

@deboer-tim
Copy link
Member Author

Yup, missed that. Fixed now.

nickygerritsen
nickygerritsen previously approved these changes Jul 10, 2023
@eldering eldering self-requested a review July 17, 2023 19:50
eldering
eldering previously approved these changes Jul 17, 2023
Contest penalty_time is the only time that's in integer minutes, and one of only 3 places where we even say minutes in the spec. As per issue icpc#150, it also blocks non-integer penalty times.

This changes it to use RELTIME, which improves both issues. It does not attempt to address anything else in issue 150, namely no attempt to add additional scoring algorithms.
As per discussion on today's clics call, updating the scoreboard score times to RELTIME as well.
@niemela niemela merged commit b35fa8e into icpc:master Jul 24, 2023
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