Currently gen_problem.py
generates generated/
directory containing:
- Ready to upload problem description HTML, together with sample cases, open subtasks, and subtask headers.
- A ZIP file of all testcases.
Additionally, gen_problem.py
also checks the following:
{slug}_sample_X.in
matchessamples/sample_X.in
.{slug}_X_1.in
matchesopens/open_X.in
.- All testcases passes input verifier for all subtasks it belongs to.
- All solutions have the expected verdict.
More generated contents (for easier upload process to
Judgels) and validations in
gen_problem.py
is currently WIP.
- Python 2
- Unix-based operating system
- tcframe >= v1.0 in local machine and $TCFRAME_HOME setup accordingly
-
Install all requirements (
pip install -r requirements.txt
) -
Run
python gen_problem.py problem_dir
, whereproblem_dir
is a problem directory root.problem_dir
must be an absolute path and must not contain a whitespace.