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 automate.py , but this name should be the same for cpp file you will use for single problem parsing (I will remove this limitation in the upcoming release)
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.
In the automate.py file, change {code}.cpp__tests to the file name you use. Make sure this file name is always the name. If you use different file names for every solution like A.cpp, B.cpp , this will not work.
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.