Forked from yosupo06/library-checker-problems to stress test my solutions.
- Linux / OS X / Windows(MinGW-w64)
- python3.6+
- g++ / clang++ (Needs --std=c++17 and __int128_t)
cd /path/to/library-checker-problems
pip3 install -r requirements.txt
# or pip3 install colorlog
ulimit -s unlimited # for linux (doesn't need for OS X and WSL)
./tester.sh # to test all problems in the script
./tester.sh math/convolution_mod datastructure/staticrmq # to test specific problems
Create the directory structure for the problem in /path/to/library-checker-problems/mine
, and create the file driver.cpp
in it, with the code for that problem.
Add this problem to PROBLEMS
in tester.sh
along with the other problems, or pass it as a command line arugment to tester.sh
Example:
cd /path/to/library-checker-problems
mkdir -p mine/datastructure/persistent_queue
touch mine/datastructure/persistent_queue/driver.cpp # code for the problem 'persistent_queue'
Add the line PROBLEMS+=( "datastructure/persistent_queue" )
to tester.sh
with the other problems OR run ./tester.sh datastructure/persistent_queue
We use testlib for verifier(input-checker) and output-checker. We use toml as toml paser.