Set draft solutions
repovive_build_set_solutionsAttach a solution to a build draft with its expected verdict and set it as the main test solution. Use replace=False to append alternative solutions for testing.
Instructions
Attach a solution to a draft with its expected verdict (AC, WA, TLE, …) and, by default, make it the draft's main test solution. Set replace=False to keep the existing alternatives and append — useful for adding deliberately wrong or slow solutions that the test data must reject.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Name for this solution file | model |
| source | Yes | Solution source code | |
| replace | No | Replace existing solutions (False appends to them) | |
| language | No | Language name; one of: c, c++, cpp, java, py, pypy, python | python |
| session_id | Yes | Build session id | |
| expected_verdict | No | Expected verdict, e.g. 'AC' | AC |
| also_set_test_solution | No | Also set it as the draft's main test solution |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |