This repository was made with the intention of backing up my solutions for future reference, as well as serve as a reference for people who might be looking for help. Please use this sparingly. The code is not maintained, and probably never will be.
The repository does not reflect the actual statistics of my sessions on online judges. There are a few problems whose solutions I forgot to save, or cannot otherwise source. I'll try to keep it complete.
But no guarantees. I am too lazy.
Oh! And do take a look at the LICENSE file before you do something with the code.
- I prefer using vanilla Sublime Text 4.
- Use the oj-sols.sublime-project file to open this repo as a project.
- [🅲++] If using Clang (ideally on macOS), copy my patched snippets/stdc++.h header file to
/usr/local/include/bits/(or any otherCPLUS_INCLUDE_PATHlocation, in thebitssubdiretory).
Important
Update the path to the header in the HEADER_SRC variable in the Makefile.
Tip
No need to worry about G++ as <bits/stdc++.h> is included pre-compiled by default.
-
[🅲++] Get cxx-prettyprint and place the header files in to
/usr/local/include/custom/(or any otherCPLUS_INCLUDE_PATHlocation, in thecustomsubdiretory). Useful for pretty-printing most STL containers. -
[🅲++] Copy
snippets/*.sublime-snippetto the Sublime Text User Packages folder (~/Library/Application Support/Sublime Text/Packagesin macOS). -
[🅲++] [☕️] Makefile and
mymake- Copy mymake.fish to
~/.config/fish/functions/(or wherever your custom fish shell functions live).mymakeis a custom fish shell function to auto-detect the Makefile at root directory of this repo and pass it tomakecorrectly, regardless of the working subdirectory.
- Makefile targets macOS and Unix-like platforms.
- Run
mymake thing.binto smart-compilething.cpporthing.javaintothing.bin - Run
mymake cpp.thing.binto force compilething.cppintothing.bin(bonafide executable) - Run
mymake java.thing.binto force compilething.javaintothing.bin(bash script that runs the generated Java class file) - Run
mymake cleanto clean out executable and generated files - Where Clang is available,
makewill try to precompile the <bits/stdc++.h> header for use.
- Run
- Copy mymake.fish to