cf

command module
v2.1.0+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 16, 2020 License: MIT Imports: 23 Imported by: 0

README

cf - codeforces.com console client

Features:

  • possibility to submit code
  • and see the result.

Installation

  1. install go compiler, as per https://golang.org/dl
  2. go get -u github.com/Komosa/cf

If you don't like to compile it yourself, pre-built binaries are available here: https://github.com/Komosa/cf_binaries

Usage

Note: to get best performance it suggested to login before contest.

It is also wise to set contest ID before it started.

Examples (commands):

  • cf login exampleuser will try log in as exampleuser, asking for password if necessary;
  • cf login will try log in as previously logged user, asking for password if necessary;
  • cf submit x.c -prob=555a -lang=10 submits file x.c as solution for problem 555A, using compiler number 10;
  • cf submit x.c -prob=555a submits file x.c as solution for problem 555A, using default compiler for c;
  • cf submit a.c -prob=555 submits file a.c as solution for problem 555A, using default compiler for c;
  • cf con 555 from now all subsequent submit ops will use 555 as default contest;
  • cf submit x.c -prob=a submits file x.c as solution for problem 555A, using default compiler for c;
  • cf submit a.c submits file a.c as solution for problem 555A, using default compiler for c;
  • cf submit a will check if it is obvious which file do you want to submit and submit it using default (or specified) language as solution for problem A in default (or specified) contest.

Configuration will be in $HOME/config/.cf/conf file, cookies will be in separate files in the same directory as conf. Feel free to edit/delete/share this files at own risk.

Limitations:

  • = character in handle is not supported (probably also by the site).

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL