This Python script automates the process of uploading and submitting your code for Codeforces problems.
You simply have to run
python3 submit.py <PROBLEM #>
from terminal to have your solution to the problem submitted.
python3 submit.py 234C
The code above will automatically submit your solution to Problem 234C on the Codeforces website. Read the Setup instructions below to get started.
Run any of the following commands - (based on what package manager you have) - in your terminal to install selenium. Selenium is required to do the browser automation.
pip3 install selenium
ORsudo easy_install selenium
ORbrew install selenium-server-standalone
Follow the short steps below and you're good to go!
- On lines 17-19 uncomment the Web Browser you have.
- On lines 36 and 38 enter your username and password. This is so that the program can log into your Codeforces account.
- If you look at the program (just a single python file) you'll see that it does not store or send information anywhere and the code has comments for every step in the process.
- On line 51 copy-paste the path/directory where your code your solutions.
Optional:
- On line 57 change the file extension based on the language your code is in.
- EX: If you are submitting a C++ file, type "cpp". If your solution is in Java type "java", etc.
- The auto submitter will submit a file starting with the Problem ID (234C, 1045E, etc) and ending in the file extension you specified. (EX: 234C_Weather.cpp)
- If you name your solution with a different convention, you can modify the condition in line 61 to select the correct file
That's it! You're ready to use the Auto Submitter to have your Codeforces solutions automatically submitted with a single command!
If you have questions or ran into errors, email me at ijapps101@gmail.com
The Auto Submitter is a super simple, effortless way to submit your Codeforces solutions.
If you have any features in mind that you would like for the Auto Submitter to have, feel free to email me ijapps101@gmail.com or contact me through my website.
Do you want to learn how to make your own Android apps? I have a YouTube Channel called IJ Apps for teaching Android app development to programmers of all levels.
For those just starting out, I have a Beginner Tutorial Playlist of 22 videos in sequential order to get you started!
If you're interested check out the channel!
Playlists:
Tutorials: