Steps:
- Clone https://github.com/RagnarGrootKoerkamp/BAPCtools
- Make an alias to the executable:
1ln -s ~/git/BAPCtools/bin/tools.py ~/bin/bt - Create a new problem:
1 2 3cd ~/problems bt new_problem my_problem_name cd ~/problems/my_problem_name - You now have the following:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22. ├── data │ ├── sample │ │ └── 1.in # Sample testcase input │ │ └── 1.ans # Sample testcase output │ └── secret ├── generators # for later │ └── ... ├── input_validators # for later │ └── ... ├── output_validators # for later │ └── ... ├── problem_statement │ ├── figure.tex.template │ ├── problem.en.tex # The problem statement ├── problem.yaml └── submissions ├── accepted │ └── name.cpp # A submission ├── run_time_error ├── time_limit_exceeded └── wrong_answer - Edit the statement
problem.en.tex - Make some samples by hand in
data/samples/*.{in,ans} - Write a solution in
submissions/accepted/<yourname>.{py,cpp,java}. - Use
bt runorbt run submissions/accepted/<submission>to test your submission.