Skip to content
This repository was archived by the owner on Oct 23, 2023. It is now read-only.

Commit ac5c89e

Browse files
committed
gen/GEN can now have no spaces after #ST:
1 parent 4ceb655 commit ac5c89e

4 files changed

Lines changed: 5 additions & 4 deletions

File tree

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,5 @@ __pycache__/
1717
cmake-build-debug/
1818

1919
tags
20+
21+
.vscode

python/formats/ioi_format.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,11 +93,11 @@ def create_subtask(subtask_num: int, testcases: Dict[int, TestCase],
9393
testcase_num = 0
9494
current_score = 0.0
9595
for line in open("gen/GEN"):
96-
if line.startswith("#ST: "):
96+
if line.startswith("#ST:"):
9797
create_subtask(subtask_num, current_testcases, current_score)
9898
subtask_num += 1
9999
current_testcases = {}
100-
current_score = float(line.strip()[5:])
100+
current_score = float(line[4:].strip())
101101
continue
102102
if line.startswith("#COPY: "):
103103
testcase = TestCase(None, validator, [], [], line[7:].strip(),

python/manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/python3
1+
#!/usr/bin/env python3
22

33
import os.path
44
import shlex

python/uis/ioi_curses_ui.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/usr/bin/env python3
2-
import time
32
from typing import Dict
43

54
from task_maker.formats import Task

0 commit comments

Comments
 (0)