Using this mini project you can get all the problems and theire input data and the expected data. Also, you can code your solution and test it locally using the check.py script.
PS: This tool only works on linux !
To be able to run these scripts you need to setup some stuff.
First you need to put the two scripts in your /bin directory. Then you should give them the rights to be executed.
run the following command in the /bin directory after copying the two scripts:
chmod u+x
Now you need to install some dependencies:
In your terminal run the following commands:
sudo apt update
sudo apt install python3
sudo apt install python3-pip
run this command:
pip3 install termcolor
pip3 install bs4
pip3 install clipboard
pip3 install selenium
createContest.py number_of_the_contest
You can get the number of the contest when you open its link for exemple:
https://codeforces.com/contest/1772/
Here the number of the contest is 1772
You will be prompted to chose the programming language you like to use, chose one by selecting the number (1, 2 or 3)
Then you will be asked if you want to use a code as a sample, you should have already created a file in the bin directory to be able to use it as a sample and you have to name it "sample.(extension of your language)" for example: sample.cpp or sample.py
After that you should access the directory of the contest (its name will be the number of the problem).
check.py
To submit your solution you will need to execute sub.py
script. (You should be in the directory of the problem)
To use this feature you should first execute the following command on a seprate terminal:
/usr/bin/google-chrome -remote-debugging-port=9014 --user-data-dir="<A directory where you want to store user data>" -no-sandbox
Then switch back to your terminal where you have the directory of the problem and type the following command to submit:
sub.py