The sources are very old! (4+ years) The old sources may not have consistent style.
Repository of submissions to Baekjoon Online Judge (BOJ) problems.
Submitted sources are grouped into directories in Codes/, according to the problem number.
- The directory name will be
(problem number) / 100 * 100.
Source code for problem #3584 can be found in
Codes/3500.
Use ./make.sh problem_number [file_extension] to create a source file in the correct directory.
[file_extension]is optional. Defaults values iscpp.
./make.sh 3584 cppwill createCodes/3500/3584.cpp.
The default compile options are:
-Wall: Show all warnings.-std=c++17: Use C++17.
submit.cpp is the file I usually use for writing code. I solve problem on this file first, then move the source after the source is accepted.
To run the file, type ./cmp.sh on the terminal. It will automatically run the following:
g++ submit.cpp -Wall -std=c++17 -o submit && ./submitNote. This does not support additional compile options for
g++.
To execute the source for some particular problem, type the following:
./cmp.sh [PROBLEM_NUMBER] [OPTIONS]PROBLEM_NUMBER: Problem number.OPTIONS: (Optional) Additional compile options forg++.
Example. To run the code for #1000 with
-Werroroption, type./cmp.sh 1000 -Werror.
Note. When compiling a specific source using problem number,
-I .has been added so thatg++will look for files in the current directory. Without this option, custom headers don't work and compilation fails.
Contains some utils for convenience / reference.
Contains useful algorithms.
Contains useful data structures.