Skip to content

Commit b78535b

Browse files
authored
Fix OI contest type (#167)
* Fix OI contest type * Bump version
1 parent e371964 commit b78535b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/sinol_make/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
from sinol_make import util, oiejq
1010

1111

12-
__version__ = "1.5.16"
12+
__version__ = "1.5.17"
1313

1414

1515
def configure_parsers():

src/sinol_make/contest_types/oi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ def get_test_score(self, result: ExecutionResult, time_limit, memory_limit):
1616
if result.Status != 'OK':
1717
return 0
1818
elif result.Time <= time_limit / 2.0:
19-
return 100
19+
return result.Points
2020
else:
2121
return 1 + int((result.Points - 1) * ((time_limit - result.Time) / (time_limit / 2.0)))

0 commit comments

Comments
 (0)