This summary is for Linux users, since I have been using Ubuntu system to play Codeforces
Playing Codeforcecs, the ability to think accurate, extremely penalty shot when the study, consider the following packages
- Package a player vim
- Use vim + fish + cf tool
- Package II IDE any player
- Using any arbitrary IDE + cf tool + rich text editor (devaluation VSCode)
- Rich Text Editor for finding templates and commit code
- IDE codes for hand knock
- Package three players CLion
- Use CLion + Jhelper + any rich text editor
cf tool Guide
There are detailed installation configuration tutorial about the following steps:
Download https://github.com/xalanq/cf-tool/releases/download/v0.8.2/cf_v0.8.2_linux_64.zip
Decompression
The
cf
files are placed in/usr/bin
or other executable directoryTerminal performs
cf config
configurationconfig
File path is~/.cfconfig
First configure the user name and password
0
, and then configure the template1
and set as the default template, and then set the file generated after crawling4
After that done to see
~/.cfconfig
about{ "username": "badcw", "password": "加密后密文xxxx", "template": [ { "alias": "cpp", "lang": "54", "path": "/home/badcw/ACMcode/codeforces/template.cpp", "suffix": [ "cpp" ], "before_script": "g++ $%full%$ -o $%file%$ -std=c++17", "script": "./$%file%$", "after_script": "rm $%file%$" } ], "default": 0, "gen_after_parse": true }
I do not know why not have a default template, anyway, how can write, path is the default template, how to write visible github
Then test configuration is correct way is
Open a game has ended, write down the numbers game (that is not a round number in the URL)
Execution
cf race xxxx
, automatically generates template, crawling title data, open questions face the full version of the browserEnter the
a
directory, writea.cpp
, written after the executioncf test
, if executed correctlycf submit
, of course, can not test directly submit, another test is that it can not determine the spj, submit successful it will wait for the outcome of the title, you do not want to be terminal I / O lock can be executedcf submit &
If all goes well it can normally use, and any error can check the template configuration
In fact, I think this tool is only useful features
race
,test
andsubmit
learned to use, andrace
can be carried out before the game, the end of the countdown will start automatically generate
Jhelper consumption refers to the North
CLion is a plug-in, Idea there as called Chelper, in fact, not very good, it is also troublesome configuration, but may be my way to eat a little crooked.
wiki Institute Add https://github.com/AlexeyDmitriev/JHelper/wiki
It can be eaten on their own, in fact, can be, but sometimes not the result of running an unknown reason, the configuration can not be bothered so it gives an example of wiki project, slightly altered, can be used.