Script for testing your code with the sample data files provided by Kattis, Code Forces and CSES!
- Python 3.6 or above.
- Compilers for the different languages you want to use with kattest. Check out Kattis for more.
- C
- C#
- C++
- Haskell
- Java
- Python 3
On Ubuntu / Mint, install kattest with the following commands:
sudo apt update
sudo apt install python3-dev python3-pip python3-setuptools
sudo pip3 install kattest
On other systems, install kattest by using pip
:
pip install kattest
Run:
kattest --help
to see which arguments to pass to kattest.
kattest --site {SITE} --problem {PROBLEMID} --filepath {FILEPATH}
Enjoy! 🚀