Fast Olympic Coding is an extension to assist with various tasks in competitive programming. It is a ported and enhanced version of the corresponding Sublime Text plugin that also leverages the power of VSCode.
⚡ Overview
📜 Concurrently run, edit, and delete multiple testcases
maxDisplayCharacters: Maximum number of characters to display for each output
maxDisplayLines: Maximum number of lines to display for each output
👨🏻💻 Stress Tester
Required files (naming scheme can be configured in settings):
<name>.[ext]: the solution to bruteforce against
<name>__Good.[ext]: the solution that outputs the correct answer
<name>__Generator.[ext]: to generate inputs for the other 2 files
The extension provides a 64-bit integer seed input for random number generators!
💡TIP: To stress test for Runtime Error instead of Wrong Answer, have the good solution be the same as the one to bruteforce against!
Stress Tester was able to find an counterexample due to an integer overflow bug!
Settings for Stress Tester
goodSolutionFile: Full path for good solution file (supports ${...})
generatorFile: Full path for generator file (supports ${...})
delayBetweenTestcases: Amount of delay between generated testcases in milliseconds (minimum: 5)
stressTestcaseTimeLimit: Maximum time in milliseconds the Stress Tester is allowed to spend on one testcase (0 for no limit)
stressTimeLimit: Maximum time in milliseconds the Stress Tester is allowed to run (0 for no limit)
👜 Inserting Prewritten Code
Add the root directory of the templates to the settings
NOTE: Remove trailing newlines for fold to work (folding is optional via settings)
Folding depends on VSCode support, which may require other extensions depending on the language.
Adding a tree reroot DP template without switching files
Possible settings
fileTemplatesBaseDirectory: Full path to the base directory of all prewritten files (supports ${...})
foldFileTemplate (default: false): Whether to fold the newly inserted prewritten code
🛜 Competitive Companion
Open the extension to start the listening process!
Using Competitive Companion to parse a CodeForces problem
We can parse an entire CodeForces Div.3 Contest!
Settings for Competitive Companion integration
openSelectedFiles (default: true): Whether to open all the selected files
askForWhichFile (default: false): Ask for which file to write testcase onto, even when a file is currently opened and only a single problem has been received
includePattern (default: **/*): Glob pattern to filter in the included files for asking prompt
excludePattern (default: empty): Glob pattern to filter out the included files for asking prompt