rbx.cp 0.5.14__tar.gz → 0.5.15__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/PKG-INFO +1 -1
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/pyproject.toml +1 -1
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/box/generators.py +2 -5
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/box/packaging/polygon/packager.py +2 -2
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/box/schema.py +9 -9
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/box/solutions.py +12 -2
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/grading/judge/sandboxes/timeit.py +3 -3
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/LICENSE +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/README.md +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/__init__.py +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/annotations.py +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/autoenum.py +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/box/__init__.py +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/box/builder.py +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/box/cd.py +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/box/checkers.py +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/box/code.py +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/box/compile.py +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/box/conftest.py +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/box/contest/__init__.py +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/box/contest/build_contest_statements.py +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/box/contest/contest_package.py +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/box/contest/contest_utils.py +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/box/contest/main.py +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/box/contest/schema.py +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/box/contest/statements.py +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/box/creation.py +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/box/download.py +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/box/environment.py +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/box/extensions.py +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/box/generators_test.py +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/box/main.py +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/box/package.py +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/box/packaging/boca/extension.py +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/box/packaging/boca/packager.py +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/box/packaging/contest_main.py +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/box/packaging/main.py +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/box/packaging/packager.py +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/box/packaging/polygon/test.py +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/box/packaging/polygon/xml_schema.py +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/box/presets/__init__.py +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/box/presets/fetch.py +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/box/presets/lock_schema.py +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/box/presets/schema.py +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/box/solutions_test.py +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/box/statements/__init__.py +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/box/statements/build_statements.py +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/box/statements/builders.py +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/box/statements/joiners.py +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/box/statements/latex.py +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/box/statements/latex_jinja.py +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/box/statements/schema.py +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/box/stresses.py +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/box/stressing/__init__.py +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/box/stressing/finder_parser.py +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/box/stressing/generator_parser.py +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/box/testcases.py +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/box/ui/__init__.py +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/box/ui/captured_log.py +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/box/ui/css/app.tcss +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/box/ui/main.py +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/box/ui/run.py +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/box/validators.py +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/box/validators_test.py +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/checker.py +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/clone.py +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/config.py +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/conftest.py +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/console.py +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/create.py +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/edit.py +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/grading/__init__.py +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/grading/caching.py +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/grading/conftest.py +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/grading/judge/__init__.py +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/grading/judge/cacher.py +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/grading/judge/digester.py +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/grading/judge/sandbox.py +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/grading/judge/sandboxes/__init__.py +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/grading/judge/sandboxes/isolate.py +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/grading/judge/sandboxes/stupid_sandbox.py +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/grading/judge/storage.py +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/grading/judge/test.py +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/grading/judge/testiso.py +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/grading/steps.py +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/grading/steps_with_caching.py +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/grading/steps_with_caching_run_test.py +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/grading_utils.py +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/hydration.py +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/main.py +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/metadata.py +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/providers/__init__.py +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/providers/codeforces.py +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/providers/provider.py +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/resources/checkers/boilerplate.cpp +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/resources/default_config.json +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/resources/envs/default.rbx.yml +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/resources/envs/isolate.rbx.yml +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/resources/packagers/boca/checker.sh +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/resources/packagers/boca/compare +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/resources/packagers/boca/compile/c +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/resources/packagers/boca/compile/cc +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/resources/packagers/boca/compile/cpp +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/resources/packagers/boca/compile/java +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/resources/packagers/boca/compile/kt +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/resources/packagers/boca/compile/pas +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/resources/packagers/boca/compile/py2 +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/resources/packagers/boca/compile/py3 +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/resources/packagers/boca/run/c +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/resources/packagers/boca/run/cc +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/resources/packagers/boca/run/cpp +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/resources/packagers/boca/run/java +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/resources/packagers/boca/run/kt +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/resources/packagers/boca/run/py2 +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/resources/packagers/boca/run/py3 +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/resources/presets/default/contest/contest.rbx.yml +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/resources/presets/default/contest/statement/contest.rbx.tex +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/resources/presets/default/contest/statement/olymp.sty +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/resources/presets/default/contest/statement/template.rbx.tex +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/resources/presets/default/preset.rbx.yml +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/resources/presets/default/problem/.gitignore +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/resources/presets/default/problem/gen.cpp +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/resources/presets/default/problem/problem.rbx.yml +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/resources/presets/default/problem/random.py +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/resources/presets/default/problem/random.txt +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/resources/presets/default/problem/sols/main.cpp +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/resources/presets/default/problem/sols/slow.cpp +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/resources/presets/default/problem/sols/wa.cpp +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/resources/presets/default/problem/statement/olymp.sty +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/resources/presets/default/problem/statement/projecao.png +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/resources/presets/default/problem/statement/statement.rbx.tex +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/resources/presets/default/problem/statement/template.rbx.tex +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/resources/presets/default/problem/tests/samples/000.in +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/resources/presets/default/problem/tests/samples/001.in +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/resources/presets/default/problem/validator.cpp +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/resources/presets/default/problem/wcmp.cpp +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/resources/templates/template.cpp +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/run.py +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/schema.py +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/submit.py +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/submitors/__init__.py +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/submitors/codeforces.py +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/submitors/submitor.py +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/test.py +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/testcase.py +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/testcase_rendering.py +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/testdata/box1/gen1.cpp +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/testdata/box1/gen2.cpp +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/testdata/box1/genScript.py +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/testdata/box1/hard-tle.sol.cpp +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/testdata/box1/ole.cpp +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/testdata/box1/problem.rbx.yml +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/testdata/box1/re.sol.cpp +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/testdata/box1/sol.cpp +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/testdata/box1/tests/1.in +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/testdata/box1/tle-and-incorrect.sol.cpp +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/testdata/box1/tle.sol.cpp +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/testdata/box1/validator.cpp +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/testdata/box1/wa.sol.cpp +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/testdata/caching/executable.py +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/testdata/compatible +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/testing_utils.py +0 -0
- {rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/utils.py +0 -0
@@ -116,8 +116,8 @@ def generate_output_for_testcase(
|
|
116
116
|
|
117
117
|
timelimit = pkg.timelimit_for_language(main_solution.language)
|
118
118
|
sandbox = EnvironmentSandbox()
|
119
|
-
sandbox.timeLimit = timelimit *
|
120
|
-
sandbox.wallTimeLimit = timelimit *
|
119
|
+
sandbox.timeLimit = timelimit * 3
|
120
|
+
sandbox.wallTimeLimit = timelimit * 3
|
121
121
|
sandbox.memoryLimit = pkg.memorylimit_for_language(main_solution.language)
|
122
122
|
sandbox.fileSizeLimit = pkg.outputLimit
|
123
123
|
extra_config = ExecutionConfig(sandbox=sandbox)
|
@@ -146,9 +146,6 @@ def generate_output_for_testcase(
|
|
146
146
|
if run_log is not None:
|
147
147
|
console.console.print(f'[error]Summary:[/error] {run_log.get_summary()}')
|
148
148
|
checker_result = checkers.check_with_no_output(run_log)
|
149
|
-
console.console.print(
|
150
|
-
f'[warning]Time: [item]{run_log.time:.2f}s[/item][/warning]',
|
151
|
-
)
|
152
149
|
console.console.print(
|
153
150
|
f'[warning]Verdict: [item]{checker_result.outcome.value}[/item][/warning]',
|
154
151
|
)
|
@@ -106,8 +106,8 @@ class PolygonPackager(BasePackager):
|
|
106
106
|
|
107
107
|
return polygon_schema.Testset(
|
108
108
|
name='tests',
|
109
|
-
timelimit=pkg.
|
110
|
-
memorylimit=pkg.
|
109
|
+
timelimit=pkg.timelimit_for_language(None),
|
110
|
+
memorylimit=pkg.memorylimit_for_language(None) * 1024 * 1024,
|
111
111
|
size=len(testcases),
|
112
112
|
inputPattern='tests/%03d',
|
113
113
|
answerPattern='tests/%03d.a',
|
@@ -1,5 +1,6 @@
|
|
1
1
|
from __future__ import annotations
|
2
2
|
|
3
|
+
import os
|
3
4
|
import pathlib
|
4
5
|
from typing import Dict, List, Optional, Union
|
5
6
|
|
@@ -350,15 +351,14 @@ that is correct and used as reference -- and should have the `accepted` outcome.
|
|
350
351
|
|
351
352
|
def timelimit_for_language(self, language: Optional[str]) -> int:
|
352
353
|
res = self.timeLimit
|
353
|
-
if language is None:
|
354
|
-
|
355
|
-
|
356
|
-
|
357
|
-
|
358
|
-
|
359
|
-
|
360
|
-
|
361
|
-
return int(res * float(modifier.timeMultiplier))
|
354
|
+
if language is not None and language in self.modifiers:
|
355
|
+
modifier = self.modifiers[language]
|
356
|
+
if modifier.time is not None:
|
357
|
+
res = modifier.time
|
358
|
+
if modifier.timeMultiplier is not None:
|
359
|
+
res = int(res * float(modifier.timeMultiplier))
|
360
|
+
if 'RBX_TIME_MULTIPLIER' in os.environ:
|
361
|
+
res = int(res * float(os.environ['RBX_TIME_MULTIPLIER']))
|
362
362
|
return res
|
363
363
|
|
364
364
|
def memorylimit_for_language(self, language: Optional[str]) -> int:
|
@@ -491,14 +491,24 @@ def _get_evals_memory_in_mb(evals: List[Evaluation]) -> int:
|
|
491
491
|
return max(int(eval.log.memory or 0) // (1024 * 1024) for eval in evals)
|
492
492
|
|
493
493
|
|
494
|
+
def _get_evals_memory_in_bytes(evals: List[Evaluation]) -> int:
|
495
|
+
if not evals:
|
496
|
+
return 0
|
497
|
+
return max(int(eval.log.memory or 0) for eval in evals)
|
498
|
+
|
499
|
+
|
494
500
|
def get_evals_formatted_time(evals: List[Evaluation]) -> str:
|
495
501
|
max_time = _get_evals_time_in_ms(evals)
|
496
502
|
return f'{max_time} ms'
|
497
503
|
|
498
504
|
|
499
505
|
def get_evals_formatted_memory(evals: List[Evaluation]) -> str:
|
500
|
-
max_memory =
|
501
|
-
|
506
|
+
max_memory = _get_evals_memory_in_bytes(evals)
|
507
|
+
if max_memory < 1024 * 1024:
|
508
|
+
if max_memory < 1024:
|
509
|
+
return f'{max_memory} B'
|
510
|
+
return f'{max_memory // 1024} KiB'
|
511
|
+
return f'{max_memory // (1024 * 1024)} MiB'
|
502
512
|
|
503
513
|
|
504
514
|
def _print_solution_outcome(
|
@@ -5,7 +5,6 @@ import resource
|
|
5
5
|
import signal
|
6
6
|
import stat
|
7
7
|
import sys
|
8
|
-
from math import ceil
|
9
8
|
from time import monotonic
|
10
9
|
from typing import List, Optional
|
11
10
|
|
@@ -58,8 +57,9 @@ def parse_opts() -> Options:
|
|
58
57
|
|
59
58
|
|
60
59
|
def get_memory_usage(ru: resource.struct_rusage) -> int:
|
61
|
-
|
62
|
-
|
60
|
+
if sys.platform == 'darwin':
|
61
|
+
return ru.ru_maxrss // 1024 + ru.ru_ixrss
|
62
|
+
return ru.ru_maxrss + ru.ru_ixrss + ru.ru_idrss + ru.ru_isrss
|
63
63
|
|
64
64
|
|
65
65
|
def get_cpu_time(ru: resource.struct_rusage) -> float:
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/resources/presets/default/contest/statement/contest.rbx.tex
RENAMED
File without changes
|
File without changes
|
{rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/resources/presets/default/contest/statement/template.rbx.tex
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/resources/presets/default/problem/statement/projecao.png
RENAMED
File without changes
|
{rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/resources/presets/default/problem/statement/statement.rbx.tex
RENAMED
File without changes
|
{rbx_cp-0.5.14 → rbx_cp-0.5.15}/rbx/resources/presets/default/problem/statement/template.rbx.tex
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|