e4dcfc49aa
Tests / Import Check (Python 3.13) (push) Has been cancelled
Tests / Import Check (Python 3.14) (push) Has been cancelled
Tests / Python Tests (Python 3.11) (push) Has been cancelled
Tests / Python Tests (Python 3.12) (push) Has been cancelled
Tests / Python Tests (Python 3.14) (push) Has been cancelled
Tests / Test Summary (push) Has been cancelled
Tests / Lint and Format (push) Has been cancelled
Tests / Web Node Tests (push) Has been cancelled
Tests / Import Check (Python 3.11) (push) Has been cancelled
Tests / Import Check (Python 3.12) (push) Has been cancelled
Tests / Python Tests (Python 3.13) (push) Has been cancelled
13 lines
986 B
YAML
13 lines
986 B
YAML
short_description: "在隔离沙箱中运行一段代码(python/c/cpp),返回 stdout/stderr。"
|
||
when_to_use: "当计算、算法校验或数值验证比纯手算更可靠时使用。"
|
||
input_format: "`language`(python、c 或 cpp)+ `code`——完整、可直接运行的源码。可选 `stdin` 与 `timeout`(秒,默认 30)。"
|
||
guideline: "自行写出完整源码并把结果打印到 stdout;代码执行适合做客观验证,不应替代文字解释。"
|
||
note: "在本回合 workspace 内运行,与 `exec` 共用同一套 OS 级隔离沙箱;未配置沙箱后端时不可用。把生成文件保存到工作目录即可作为产物输出。"
|
||
phase: "verification"
|
||
aliases:
|
||
- name: run_code
|
||
description: "运行一段代码(python/c/cpp),用于计算、验证或可视化。"
|
||
input_format: "`language` + `code`;可选 `stdin`、`timeout`。"
|
||
when_to_use: "适合做客观校验、快速计算或小规模实验。"
|
||
phase: "verification"
|