final fixes

This commit is contained in:
Barrett Ruth 2025-09-16 00:44:13 -04:00
parent 675beec021
commit 73d9ae9b72

View file

@ -170,9 +170,14 @@ local function run_single_test_case(ctx, contest_config, test_case)
local run_cmd = build_command(language_config.run, language_config.executable, substitutions)
local stdin_content = test_case.input .. "\n"
if ctx.contest == "atcoder" then
stdin_content = "1\n" .. stdin_content
end
local start_time = vim.uv.hrtime()
local result = vim.system(run_cmd, {
stdin = test_case.input .. "\n",
stdin = stdin_content,
timeout = contest_config.timeout_ms or 2000,
text = true,
}):wait()