Algorithm competition practicing repo. Supports C++ & Python in VSCode. (.vscode/ contains configuration of F9~F11 for VSCode similar to Dev-C++, and an extra Ctrl+F10 to loop running.)
- Using this configuration set, you can use VSCode to write, compile and run C++/Python codes easily! (
F9: Compile.F10: Run.F11: Compile & Run.) - You can customize compiling options for different OJ: modifying
Utility.d/compile_opts.tomlis enough. (The corresponding.execompiled by Rust will do the rest of the work.)
-
Bun installed on your computer, for looping running. (Or anything you like. :) If you do not need this feature, you can skip this.)
- Install Bun (
bun.sh); cd Utility.dandbun install.
- Install Bun (
-
gcc/g++ in your computer and added to the path in environment variables, if you use C++.
-
Having VSCode installed.Copy the contents of.vscode/keybindings.not-here.jsonto your favoritekeybindings.json:If you are not using "Profiles" feature in VSCode, then the target keybindings.json is in:
%APPDATA%\Code\User(Windows),~/.config/Code/User(Linux),~/Library/Application Support/Code/User(MacOS, not sure because I does not have one :( ).
If you are using a VSCode Profile, then paste it to the keybindings in
(your path above)/profiles/(a string of number representing your target profile).
- To start with, copy the things inside
.vscode/keybindings.not-here.jsonas Prerequisites describes. - For Python input, after inputting all the data needed, use
Ctrl+Zto put an end to the input stream. (Enteris needed before and after theCtrl+Z.) - To add more OJs and their C++ standard, just append them to
Utility.d/compile_opts.toml.