Package: codeforces-toolbox
Codeforces ToolboxThis tool is a CLI (Command Line Interface) that makes writingCodeforcescontests more efficient.FeaturesCreate files based on the specified template. These files will be named appropriately for the contest, for example 1000A, 1000B1, 1000B2, 1000C.Download sample test from Codeforces.Compile solution and test it.Submit solutionWait for the verdictSupported languages: C++, C, Python, Java, Kotlin, Rust, C#, Go.Settings configurationcft configChoose one of the following (type an integer):
  1. change the template file
  2. change username and password
  3. change programming language
  4. set compile command
  5. set run commandthen you can just type an integer (1-5) and change your template file, username and password, language, run or compilation command.See the FAQ at the bottom of this page.Creating structure for a contestcft race 1234creates the following directory structure (provided that your programming language is C++):1234/
  1234A.cpp
  1234B.cpp
  1234C.cpp
  1234D.cpp
  1234E.cpp
  1234F.cpp
  1234G.cppfiles 1234X.cpp are created by copying the previously specified template file.It is recommended that you then change the current working directory (cd 1234) to operate more smoothly later.You can also enter a task name (e.g.cft race 1234X) instead of a contest name, in which case a single file will be created.Testing solutioncft test 1234Acompiles your solution, downloads (if not yet downloaded) example test and checks if it passes.If your current working directory issome/path/1234you can type justcft test A.If your answer uses floating point numbers you can determine what error will be acceptable by using-por--precisionflag.cft test 1495A -p 1e-9
cft test 1495A --precision 1e-9Submitting solutioncft submit 1234Asubmits solution and returns judgement verdict.If your current working directory issome/path/1234you can type justcft submit A.InstallationPlease first install Python 3.7 or higher frompython.org. During installation, you should check the option'Add Python to PATH'.Then just copy and paste in your terminal this:pip install codeforces-toolboxIf you want to upgrade the package, you can do this by:pip install --upgrade codeforces-toolboxThe program will automatically check if there is a new version and try to install it if you runcftwithout any arguments orcft config.Ifpipcommand is not found you can usepip3 install codeforces-toolboxorpython3 -m pip install codeforces-toolbox.Contribution & bugsIf you want to contribute to the project, fork this repository and open a new PR. If you have any questions or suggestions, email me (you can find my email address at my profile page) or create an issue.FAQMy favorite language is not supported!Well, that is not a question, nevertheless I encourage you to create an issue in the repository.Compile command,run command– what is this?Compile commandis the command you would use to compile your solution. For example: in C++ it can beg++ -Wall, in Javajavac, in Kotlinkotlinc-native, in Rustrustc, in C#csc, in Gogo build. Note that Python does not have a corresponding compiler because it is an interpreted language.Run commandis the command you would use to run your solution. If you are using a language that compiles to machine code that your operating system can run, you don't need this command. Otherwise, if you are using Python this can bepython,python3,py,pypy. In the case of Java, it is probablyjava.I assume that your compiler/interpreter is added to the PATH environment variable. If it is not, add it, or provide an absolute path, e.g.C:\Users\user\AppData\Local\Programs\Python\Python39\python.exeinstead of justpython.