Codeforces Tools Summary

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

  1. Package a player vim
    • Use vim + fish + cf tool
  2. 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
  3. Package three players CLion
    • Use CLion + Jhelper + any rich text editor

cf tool Guide

github address

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 cffiles are placed in /usr/binor other executable directory

  • Terminal performs cf configconfiguration

  • configFile path is~/.cfconfig

  • First configure the user name and password 0, and then configure the template 1and set as the default template, and then set the file generated after crawling4

  • After that done to see ~/.cfconfigabout

  • {
      "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 browser

  • Enter the adirectory, write a.cpp, written after the execution cf test, if executed correctly cf 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, testand submitlearned to use, and racecan 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.

Guess you like

Origin www.cnblogs.com/badcw/p/12078729.html