Skip to content

Commit cf78265

Browse files
committed
print time limit
1 parent faca5dd commit cf78265

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

bin/problem.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1205,6 +1205,15 @@ def run_submissions(problem) -> bool:
12051205
if not ts_pair:
12061206
return False
12071207
testcases, submissions = ts_pair
1208+
1209+
config.args.local_time_multiplier = 2.0
1210+
msg = (
1211+
"localy adjusted "
1212+
if config.args.local_time_multiplier is not None and config.args.time_limit is None
1213+
else ""
1214+
)
1215+
PrintBar("run").log(f"using {msg}timelimit: {problem.limits.time_limit:.1f}s\n", color="")
1216+
12081217
ok, verdict_table = Problem.run_some(testcases, submissions)
12091218

12101219
if (

0 commit comments

Comments
 (0)