This repository aims to serve as a problem repository. In particular, for each problem used in Reboot's Competitive Programming Division's training, the problem statement, its solution, and its writeup will be included.
All of the following commands assume that you are in the repository directory.
To be able to run Python3.10 files within the repository, first run the following command:
chmod +x venv/bin/activate
. venv/bin/activateTo be able to run C++ files within the repository, first run the following command:
sudo apt install gcc -yTo run Python3.10 files, run the following command:
python3.10 <problem-code>/solution.pyTo run C++ files, run either of the following commands:
chmod +x run.sh- To run a file with stdin and stdout:
./run-cpp.sh
- To run a file with
input.txtas stdin, and stdout:./run-cpp.sh in - To run a file with stdin and
output.txtas stdout:./run-cpp.sh out
- To run a file with
input.txtas stdin andoutput.txtas stdout:./run-cpp.sh in-out
.
└── problem-code/
├── input.txt
├── output.txt
├── output.exe # Won't be pushed to the repository
├── solution.cpp
├── solution.py
├── statement.md
└── writeup.md