I made a Test Case Parser and it can parse test cases for your problem in just one keystroke.
Update : Contest Parser has also been added.
- Update your Sublime Build file and automate.py file
- Place the contest.py file along with the automate.py file in your workspace folder
- Open the contest page on chrome, go to sublime text (Make sure you have a cpp file open in the workspace directory)
- Press ctrl+shift+B and select automate-Contest to run the contest parser
- A new directory with contest id will be created inside Workspace with all (Problem Id).cpp files and corresponding test files
- All cpp files will have the template copied from "solution.cpp" file , you can change the name in contest.py to your template filename.
Download the github repo from here : AutomateOlympicCoding.
Video Walkthrough
Extract it and place the sublime build file in Packages/User. Place the automate.py file in the same folder as your cpp file.
Open up the problem tab in chrome (Only works for chrome) , go to sublime text and start coding. Launch the automate build system in the background using "Ctrl + B" and it will parse the test cases while you are solving the problem.
Now just run the OlympicCoding plugin.
Dependencies :
- Install Python3.
- pip install bs4
- pip install pywinauto
You can support me on my Youtube Channel here : GGxEpsilon
I can automate this further so that you can parse and run OlympicCoding in a single Keybind but will skip that for now.
Thanks for reading and feedback will be appreciated.