Automatic Test Parser for FastOlympicCoding

Правка en3, от epsilon_573, 2020-12-07 10:26:25

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

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.

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en7 Английский epsilon_573 2020-12-08 13:21:55 1822 Tiny change: 'ystroke.\n**Update' -> 'ystroke.\n\n**Update'
en6 Английский epsilon_573 2020-12-07 13:34:40 353
en5 Английский epsilon_573 2020-12-07 13:29:35 56
en4 Английский epsilon_573 2020-12-07 10:36:44 25
en3 Английский epsilon_573 2020-12-07 10:26:25 718 Tiny change: ' Update : ** Contest Parser ** has also ' -> ' Update : Contest Parser has also '
en2 Английский epsilon_573 2020-12-06 16:36:02 84 Tiny change: 'ding).\n\nExtrac' -> 'ding).\n\n#### Video Walkthrough\n- Youtube\n\nExtrac'
en1 Английский epsilon_573 2020-12-06 12:28:34 1251 Initial revision (published)