xalanq's blog

By xalanq, 11 days ago, In English,

Codeforces Tool is a command-line interface tool for Codeforces.

It's written in golang (without any browser driver). And it's fast, small (only about 6 MB).

You can find the source and pre-compiled binary files in my git repo https://github.com/xalanq/cf-tool

Features:

  • Cross-platform (win, osx, linux)
  • Submit a code to a contest.
  • Watch submissions' status dynamically.
  • List problems' stats in a contest.
  • Parse problems' samples (parallel).
  • Generate code by templates.
  • Test samples.
  • Use default web browser to open problem, standing page.
  • Colorful CLI.
waiting done count down

I have tested the tool for contest Codeforces Round #551 (Div. 2).

It's not a cheating tool, but a tool for beautiful life :)

Pull requests are always welcome.

FAQ:

what's the "cp" command?

"cp" is a system command, meaning copy a file.

I just copy the file (already written) to current path. So i don't need to write code in the example gif.

You can run "cf gen" to generate a file (named as "a.cpp" or otherelse) from a template.

I double click the program but it doesn't work

Codeforces Tool is a command-line tool. You should run it in system terminal.

I cannot use "cf" command

You should put the "cf" to a path (e.g. "/usr/bin" in Linux) which has been added to system environment variable PATH.

Or you can add the path where "cf" exists to PATH. Just google "how to add path to system environment variable PATH".

In fact, you should run "cf -h" at first to get some help message.

 
 
 
 
  • Vote: I like it  
  • +199
  • Vote: I do not like it  

»
11 days ago, # |
  Vote: I like it 0 Vote: I do not like it

Auto comment: topic has been updated by xalanq (previous revision, new revision, compare).

»
11 days ago, # |
Rev. 2   Vote: I like it +52 Vote: I do not like it

Upvoted. I must say that this is the most complete codeforces problem parser that I have seen so far.

Thanks for the effort!

»
11 days ago, # |
  Vote: I like it -8 Vote: I do not like it

Will you support Linux in the future?

  • »
    »
    11 days ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    He mentioned that Linux is supported.

»
11 days ago, # |
  Vote: I like it +13 Vote: I do not like it

Yeah. Right. csrf / evercookie extraction.

Good thing that Mike never bothered to provide good api and forces people to scrape pages if you plan doing anything cf related ever.