Competitive programming is a sport where your minutes matter a ton. Switching screens and tabs, copy pasting your code, waiting for the "AC" verdict while keeping an eye on your competitors is a pain in the ***. We are not GPUs.
Enter CP-Buddy.
- Create a dedicated contest-directory
- Check Sample Test Cases
- Submit Code
- Get Contest Ranks of your Friends
RIGHT FROM YOUR TERMINAL WINDOW !!!
- Clone the repository and install the requirements
pip install requirements.txt
- Setup the
config.py
file- Add the login credintials in the
CONFIG_DICT
- Add the path to your directory where all your files will go in
ROOTFOLDER
- Add the login credintials in the
- Add your own template in
template.cpp
file or you can use mine ;) - Make sure you have VSCode installed, that's the only editor it supports as of now.
Contest Mode
- Use as :
python main.py c {site} {contest-link}
- site : either of
['cf, 'at']
for codeforces and atcoder respectively - contest-link : link of the contest
- site : either of
- MAKE SURE YOU RUN THE COMMAND AFTER THE CONTEST BEGINS, NOT BEFORE !
Commands:
open A
: open the code file for problem Acheck A
: check problem A against sample test casessubmit A
: make the submission for problem Arank {user}
: get the rank of the userclear
: to clear the terminal screenexit
: to terminate the program
Practice Mode
- Use as :
python main.py p
Commands:
open {site} {problem-id}
- site : either of ['cf', 'at']
- problem-id : examples : 1934a (codeforces), abc356a (atcoder)
check {site} {problem-id}
submit {site} {problem-id}
It's still in a developing stage. I am trying to use it as much as I can and solving bugs on the way.