- 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
Load contest problems in current directory.
> acf contest [contest number from URL]
Test your solution with problem tests.
> acf test [source_file.cpp]
Use flag -b [benchmark count]
to get average executing time.
> acf test [source_file.cpp] -b [benchmark count]
Tip: use
acf test [source_file.cpp] && acf copy [source_file.cpp]
to copy your solution whether it is correct
Create acf-config.json
in your user directory.
Example:
{
"compiler": "g++",
"standart": "c++17"
}
compiler
— a name of your C++ compiler. Default isg++
.standart
— a C++ standart. Default isc++17
.