This is a Codeforces bot. It helps you download all the problem statements and input-output of a contest.
HOW TO USE THIS BOT:
- install python3 on your pc
- get the url of the codeforces contest(ex : https://codeforces.com/contest/1411 )
- run this code and give this url as a system argument(ex : " python3 cf.py https://codeforces.com/contest/1411 " )
It will make a folder in your working directory (directory in which you run the script), and inside that folder it will create subfolders for each problem. It also makes a shell script to run c++ code.
HOW TO RUN YOUR C++ CODE:(For Linux users only)
-
navigate to the folder where all the files are present
-
run this command to give permission to the shell script( "chmod +x cp.sh" )
-
run "./run contest_id problem_number", for ex "./run 1411 A"
Note:
- constest_id is unique number in url of contest, for example in https://codeforces.com/contest/1411 contest code is 1411
- problem number is A, B,C etc. It will compile and execute your code and compare your output with the actual output.