Home

Awesome

cfparser

Emacs plugin for participating in http://codeforces.com programming competitions.

Installation

(add-to-list 'load-path "/path/to/cfparser/")
(require 'cf-mode)
(add-hook 'find-file-hook 'cf-mode)  ; enable cf-mode for all open files

Optional setup

In ~/.emacs file you can change variables:

(setq cf-test-command
  (concat
    "g++ sol.cc; "
    "for i in `ls *.in | sed 's/.in//'`; do "
    "echo test $i; "
    "./a.out < $i.in | diff - $i.ans; "
    "done;"))

In file cf-languages.el you can adjust extension-to-language mappings.

Usage

Submit and save functions "guess" the contest number, problem index and the programming language by the current file name in one of the following forms:

See also