A simple tool that helps you WA faster, therefore AC faster.
-
Create a new project
. acboost-create <problem_name> [problem_url]
This will create a new project under
$(date +%Y)/$problem_name
and cd into it. -
Type your answer in
src/${problem_name}.cpp
. -
Edit some cases and their answers in
cases/*.in
,cases/*.out
. -
Run test
make test
Or simply just
make
.An example output (with the ac_boost theme).
-
Enjoy your WAs and ACs.
-
Use custom theme.
Custom theme can be load by supplying
ACBOOST_THEME
variable.ACBOOST_THEME=$ACBOOST_ROOT/themes/ac_boost make test
You can provide your own theme and use it this way. Refer to themes/default to learn more.
-
You can put the variables in your shell login script to preserve your configuration.
Edit
~/.bashrc
(if you use bash).ACBOOST_ROOT=$your_ACBOOST_ROOT ACBOOST_THEME=ac_boost # load theme from $ACBOOST_ROOT/themes/ # use this to boost your access to ACBoost alias acboost-create=". $ACBOOST_ROOT/acboost-create"
-
Specify your own prefix when creating new project.
By default projects will be created under
$(date +%Y)
. You can specify your own prefix.ACBOOST_DIRPREFIX=easy_problems acboost-create problem_a
You can also specify this parameter via your login script.
-
Test ACBoost itself.
cd metatest # Create test projects make create-test-projects # Run test make test
-
Cannot execute scripts.
Grant permission to the scripts.
chmod ug+x acboost-create chmod ug+x scripts/*