Skip to content

Commit

Permalink
Fix OI contest type (#167)
Browse files Browse the repository at this point in the history
* Fix OI contest type

* Bump version
  • Loading branch information
MasloMaslane authored Jan 1, 2024
1 parent e371964 commit b78535b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/sinol_make/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from sinol_make import util, oiejq


__version__ = "1.5.16"
__version__ = "1.5.17"


def configure_parsers():
Expand Down
2 changes: 1 addition & 1 deletion src/sinol_make/contest_types/oi.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ def get_test_score(self, result: ExecutionResult, time_limit, memory_limit):
if result.Status != 'OK':
return 0
elif result.Time <= time_limit / 2.0:
return 100
return result.Points
else:
return 1 + int((result.Points - 1) * ((time_limit - result.Time) / (time_limit / 2.0)))

0 comments on commit b78535b

Please sign in to comment.