Package: cf-submit
cf-code-submitSubmit code to codeforces from the command line, and other stuff (display solves for each problem, display standings).In order to save the huge number of seconds needed to reach for the mouse during codeforces contests, I needed to be able to submit from the command line. There are many tools to do this for codeforces contests but I was unable to find an existing tool that allowed submissions to the codeforces gym for virtual contests, so I made this.After being able to submit from the command line, I noticed that I was wasting too much time staring at the standings on codeforces. Now I waste less time (hopefully) by staring at the standings in the terminal.Then I realized I would rather not navigate codeforces in my browser because looking for my mouse is a hassle, so now I can look at the number of solves for each problem in the terminal as well.NEWAdd autocomplete while writing the command (double TAB).Setup (Linux)Install from pip.sudo pip install cf_submitUsesSubmissionsconorgymto set default contest or gym ID. Example:cf con 844orcf gym 101482gconto set default group and contest ID. Example:cf gcon dyEemqw7jN 233642extto set default file extension. Will be used when no file extension is given. (cf submit a)submitto submit code. Will try to guess problem. Batch submit allowed. Example:cf submitorcf submit a.cpp--probor-pto specify problem. Example:cf submit code.cpp -p 844a--watchor-wto Watch the status of submission after submitting it. Example:cf submit a.cpp -p 844a -wpeekto look at status of the last submission. Example:cf peekwatchto watch the status of the last submission if-wwas not used. Example:cf watchloginto store login info (username and password), will prompt you to enter password. Example:cf loginorcf login <your handle>infoto show stored handle and contest id. Example:cf infotimeto show time left in contestopento open the selected problem in the browserExamples:cf submit code.cpp -p844a -wParse problem samplesparseto import selected problem samples dataExamples:cf parse -p 1108aorcf parse -p aTest solutiontestto test the selected source code with the imported tests dataExamples:cf test main.cpp, you should specify the version for python (use-l py2|py3)Print Standingsstandingsorstto look at friends' standings. Example:cf standings--contestor-cto specify the ID of the contest to look at. Example:cf standings -c 844--groupto specify the ID of the group to look at. Example:cf standings --group dyEemqw7jN--verboseor-vto print standings with more info. Example:cf standings -v--topor-tto look top contestants. Defaults to top 50 if-tis not included, top 10 if--topis included but no number is given. Example:cf standings -t 20--allor-ato look at all contestants instead of only friends. Example:cf standings --all--sortor-sto merge the solves of different rows belonging to the same handle. Will not merge two correct submissions on different rows. Example:cf standings -sExamples:cf st -v -t7orcf standings -c844 -v -aPrint Problem Statsproblemsorpbto look at the number of solves for each unsolved problem in a contest. Example:cf problems--contestor-cto specify the ID of the contest. Example:cf problems -c 844--groupto specify the ID of the group. Example:cf problems --group dyEemqw7jN--verboseor-vto show solved problems as well. Example:cf problems -v--sortor-sto sort problems by: number ofsolves, orindex(id). Default sort is by number of solves (you do not need to use--sort). Example:cf problems -s idExmaples:cf pb -v -s idorcf problems -c100187 -vHackhackto begin the hack proccess.--probor-pto specify problem.--numberor-nto specify the number of tests to try.Exmaples:cf hack generator.cpp checker.cpp bruteforce.cpp --prob aNoteThis script uses python3