ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Competitive​Programming​Parser

Problem test-case parser for Sublime Text editor from various online judges

Details

Installs

  • Total 1K
  • Win 875
  • Mac 245
  • Linux 188
May 19 May 18 May 17 May 16 May 15 May 14 May 13 May 12 May 11 May 10 May 9 May 8 May 7 May 6 May 5 May 4 May 3 May 2 May 1 Apr 30 Apr 29 Apr 28 Apr 27 Apr 26 Apr 25 Apr 24 Apr 23 Apr 22 Apr 21 Apr 20 Apr 19 Apr 18 Apr 17 Apr 16 Apr 15 Apr 14 Apr 13 Apr 12 Apr 11 Apr 10 Apr 9 Apr 8 Apr 7 Apr 6 Apr 5 Apr 4
Windows 0 5 2 4 2 5 4 0 0 1 1 1 5 1 5 2 1 2 1 0 4 0 1 1 1 0 1 0 2 0 2 2 1 0 1 4 0 1 0 1 0 0 1 3 0 1
Mac 0 0 1 0 0 0 0 0 1 1 1 0 0 0 0 1 0 0 0 0 0 0 0 0 1 1 0 0 2 1 0 0 0 1 0 1 1 0 1 1 0 0 0 0 0 0
Linux 1 0 0 0 2 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 1 0 0 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

Competitve Programming Parser for Sublime Text

This is a Sublime Text package for parsing problem test-cases from various online judges. You can then run your solution against the testcases with the help of CppFastOlympicCoding. The list of supported websites can be found here.

Competitive Programming Parser can:

  • parse testcases for a problem
  • parse a problem : creates file and parses testcases for the problem
  • parse a contest : parses all the problems of a contest

Dependencies

Setup

Usage

1. - For parsing the test-cases for a particular file: Right click anywhere in the file and select CompetitveProgammingParser -> Parse Testcases. Key Binding: ctrl+shift+x
- For parsing a problem: Right click anywhere in the Sublime Text editor and select CompetitveProgammingParser -> Parse Problem. Key Binding: ctrl+shift+y
- For parsing a contest: Right click anywhere in the Sublime Text editor and select CompetitveProgammingParser -> Parse Contest. Key Binding: ctrl+shift+c
2. In the browser, navigate to the problem page and click on the competitive-companion extension's green plus icon.
3. Use CppFastOlympicCoding to run the solution against the parsed testcases.

Some Common Pitfalls

  • Windows users should make sure that tests_file_suffix is set to same value in the settings file of our package and CppFastOlympicCoding. In CppFastOlympicCoding, tests_file_suffix is by default set to :tests. The problem with this is that : is not allowed in filename on windows. Fix is to override it to __tests(which is also the default value of tests_file_suffix in our package.) in the user settings file of CppFastOlympicCoding.