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

CP Parser

A codeforces & codechef problem and testcase parser for sublime.

Details

Installs

  • Total 146
  • Win 84
  • Mac 40
  • Linux 22
Nov 5 Nov 4 Nov 3 Nov 2 Nov 1 Oct 31 Oct 30 Oct 29 Oct 28 Oct 27 Oct 26 Oct 25 Oct 24 Oct 23 Oct 22 Oct 21 Oct 20 Oct 19 Oct 18 Oct 17 Oct 16 Oct 15 Oct 14 Oct 13 Oct 12 Oct 11 Oct 10 Oct 9 Oct 8 Oct 7 Oct 6 Oct 5 Oct 4 Oct 3 Oct 2 Oct 1 Sep 30 Sep 29 Sep 28 Sep 27 Sep 26 Sep 25 Sep 24 Sep 23 Sep 22
Windows 0 0 0 0 1 0 0 0 1 0 0 0 0 0 0 0 1 0 0 0 0 3 0 0 0 0 0 0 0 0 0 0 1 0 1 1 1 0 2 0 0 3 0 0 0
Mac 1 0 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0 0 0 0 0 0 0 0 0
Linux 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1 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