BAPCtools instruction

Steps:

  1. Clone https://github.com/RagnarGrootKoerkamp/BAPCtools
  2. Make an alias to the executable:
    1
    
    ln -s ~/git/BAPCtools/bin/tools.py ~/bin/bt
    
  3. Create a new problem:
    1
    2
    3
    
    cd ~/problems
    bt new_problem my_problem_name
    cd ~/problems/my_problem_name
    
  4. 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
    
  5. Edit the statement problem.en.tex
  6. Make some samples by hand in data/samples/*.{in,ans}
  7. Write a solution in submissions/accepted/<yourname>.{py,cpp,java}.
  8. Use bt run or bt run submissions/accepted/<submission> to test your submission.