Skip to content

b4mbu/codeforces-assistant

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Installation

  • Clone the repository
    git clone https://github.com/b4mbu/codeforces-assistant.git
  • Build an application
    go build -o acf main.go
  • Add executable file to PATH variable or just move it to /usr/local/bin
    mv ./acf /usr/local/bin

Commands:

Contest

Load contest problems in current directory.

> acf contest [contest number from URL]

contest

Test

Test your solution with problem tests.

> acf test [source_file.cpp]

test

Use flag -b [benchmark count] to get average executing time.

> acf test [source_file.cpp] -b [benchmark count]

bench Tip: use acf test [source_file.cpp] && acf copy [source_file.cpp] to copy your solution whether it is correct

Config:

Create acf-config.json in your user directory. Example:

{
    "compiler": "g++",
    "standart": "c++17"
}
  • compiler — a name of your C++ compiler. Default is g++.
  • standart — a C++ standart. Default is c++17.