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

CP Parser

A codeforces & codechef problem and testcase parser for sublime.

Details

  • 1.0.0
  • github.​com
  • github.​com
  • 11 months ago
  • 35 minutes ago
  • 10 months ago

Installs

  • Total 150
  • Win 87
  • Mac 40
  • Linux 23
Nov 21 Nov 20 Nov 19 Nov 18 Nov 17 Nov 16 Nov 15 Nov 14 Nov 13 Nov 12 Nov 11 Nov 10 Nov 9 Nov 8 Nov 7 Nov 6 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
Windows 1 0 0 0 0 0 0 0 0 0 1 0 1 0 0 0 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
Mac 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 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
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 0 0 0 0 0 0 1 0 0 0 2 0 0 0 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