This script automates the setup of a new Kattis problem environment. It creates a new folder with the appropriate files for the selected programming language (Java or Python), and opens the folder for you.
-
Run the script: Execute
KattisForge.bat
or run it in your command line. -
Setup the destination folder: On the first run, you will be prompted to set up the destination folder.
- Note: The default location is
C:\Users\{username}\Documents\Kattis
. If you use OneDrive, you might want to useC:\Users\{username}\OneDrive\Documents\Kattis
instead. You can always modify this path later in theconfig.ini
file.
- Note: The default location is
-
Enter the Kattis problem name: When prompted, enter the name of the Kattis problem you want to set up an environment for.
-
Select the programming language: Enter
J
orJava
for Java, orP
orPython
for Python. -
Folder creation: The script will create a new folder in the destination folder, with the name of the Kattis problem. It will also create the appropriate files for the selected programming language, and then open the new folder.
-
Download sample inputs and outputs: Download the sample inputs and outputs from Kattis Problem → Metadata → Download Sample data files. Save them in the
sample
subfolder in the new problem folder. -
Solve the Kattis Problem!
-
Check your solution against the sampel inputs: Run the
answerchecker.bat
script. It gives feedback on your solution inmain.py
orMain.java
whether or not your output is the same as the expected output in the apropriate.ans
file.