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

CP Parser

A codeforces & codechef problem and testcase parser for sublime.

Details

Installs

  • Total 54
  • Win 33
  • Mac 13
  • Linux 8
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 Apr 3 Apr 2 Apr 1 Mar 31 Mar 30 Mar 29 Mar 28 Mar 27 Mar 26 Mar 25 Mar 24 Mar 23 Mar 22 Mar 21 Mar 20 Mar 19 Mar 18 Mar 17 Mar 16 Mar 15
Windows 2 0 0 0 3 0 0 0 0 1 0 1 0 0 0 0 0 0 0 0 0 0 1 0 0 0 2 0 0 2 0 0 0 2 0 0 0 0 0 0 0 0 0 0 0
Mac 0 1 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 1 0
Linux 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

CP Parser

Important Prerequisite

Go to Settings -> Package Settings -> CPParser -> Settings and add your directory paths.

Only Codeforces & Codechef are supported as of now I'll be adding support for other sites soon, please create an issue if you want to request support for a site.

This ST4 plugin functions as follows:

  1. Accepts a problem URL like https://codeforces.com/problemset/problem/1900/D.
  2. Parses the URL to extract the problem code.
  3. Generates a new .cpp file using a predefined template.
  4. Parses testcases on Codeforces & Codechef in CPPFastOlympicCoding format, so if you're using CPPFastOlympicCoding testcases will be automatically added.

Usage

Upon installation, configuring settings (such as defining the default directory and snippets) is advised default path is ~/Documents/CPParser

  1. Tools -> CP Parser -> New Problem
  2. Command Palette -> search CP Parser: Parse New Problem

Set Keybindings

You can access keybindings through Preferences > Key Bindings and add your Key Bindings like the following

{ "keys": ["ctrl+alt+x"], "command": "cp_problem" }

Supported Websites (current)

  1. Codeforces
  2. Codechef