feat: system test case download #268
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
barrettruth/cp.nvim#268
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
cp.nvim only scrapes sample test cases shown on the problem statement page. After a contest ends, AtCoder makes the full system test input/output data publicly available. Being able to run a solution against the actual judge inputs locally — without submission — is invaluable for debugging solutions that passed samples but failed on submission.
Proposed solution
Add
:CP fetch-system [<platform> <contest> <problem>]that callsoj download --system <URL>for the current problem.ojhandles the download and places files in a directory; cp.nvim would import them into its cache/IO format alongside existing test cases.This pairs with stress testing (issue #257): running stress tests with system inputs can immediately pinpoint the exact failing case.
Alternatives considered
Manual download via
oj download --system URLand importing files by hand. This works but is friction that a:CP fetch-systemcommand would eliminate.DO NOTUSE OJ!
Closing — none of the four supported platforms (Codeforces, AtCoder, CodeChef, CSES) provide reliable public access to system test data.