A simple competitive programming problem parser and test runner.
Parsing Features
- Problems
- Contests
This wokrs smoothly in Codeforces and Atcoder.
Install
go install github.com/kunalsin9h/ru@latest
Config
ru config
Here add your C++ compile command (without -o
)
Example:
# command
ru config
# input
Paste your c++ compile command: g++ -std=c++17 -O2
Parsing Problem
# first do
ru parse
# or `ru p`
# then click on Competitive Companion Browser Extension
# cd A
ru test
# or `ru t`
Copy source when test passes
ru test --copy
# or `ru t --copy`
# or `ru t -c`
# this need clipboard utility like xclip
Parsing Contests
When parsing contest we need to give the number-or-problems
argument to the parse
command
ru parse 6
# this will parse 6 problems from contest