-
Notifications
You must be signed in to change notification settings - Fork 5
download
Aditya Kumar edited this page Sep 19, 2020
·
4 revisions
usage: cpcli download [-h]
optional arguments:
-h, --help show this help message and exit
- All the sample test cases for problems are downloaded and saved inside
.metadata.json
. Running thedownload
command again would force download all the sample test cases again. - Running all the other commands however, loads all the sample tests from the
.metadata.json
file. If the.metadata.json
already do not exists for the problems corresponding to the given URI - problems are downloaded and saved then the earlier command is executed. This is made such that when testing a problem in hurry, we do not have to specifically run the download command.
cpcli -c cf::1339 download
Downloading page https://codeforces.com/contest/1339/problems
Found: Codeforces Round #633 (Div. 2) ✅
Scraping problems:
Question 1: A-Filling-Diamonds [⏰ 1 sec] [1 Samples]
Question 2: B-Sorted-Adjacent-Differences [⏰ 1 sec] [1 Samples]
Question 3: C-Powered-Addition [⏰ 1 sec] [1 Samples]
Question 4: D-Edge-Weight-Assignment [⏰ 1 sec] [3 Samples]
Question 5: E-Perfect-Triples [⏰ 2 sec] [1 Samples]
Saved in ./ContestFiles/Codeforces-1339
All the problems will be saved in a tree like structure as below::
ContestFiles
└── Codeforces-1339
├── A-Filling-Diamonds.cpp
├── B-Sorted-Adjacent-Differences.cpp
├── C-Powered-Addition.cpp
├── D-Edge-Weight-Assignment.cpp
├── E-Perfect-Triples.cpp
└── .metadata.json
cpcli -c cc::JUNE20A download
Downloading page https://www.codechef.com/JUNE20A
Found: June Challenge 2020 Division 1 ✅
Scraping problems:
Question 1: PRICECON-Chef-and-Price-Control [⏰ 1 sec] [1 Samples]
Question 2: XYSTR-Chef-and-String [⏰ 1 sec] [1 Samples]
Question 3: CHFICRM-Chef-and-Icecream [⏰ 1 sec] [1 Samples]
Question 4: EVENM-Even-Matrix [⏰ 1 sec] [1 Samples]
Question 5: EOEO-The-Tom-and-Jerry-Game [⏰ 1 sec] [1 Samples]
Question 6: TTUPLE-Operations-on-a-Tuple [⏰ 1 sec] [1 Samples]
Question 7: CONTAIN-The-Delicious-Cake [⏰ 1 sec] [1 Samples]
Question 8: GUESSG-Guessing-Game [⏰ 2 sec] [0 Samples]
Question 9: CONVAIR-Convenient-Airports [⏰ 1 sec] [1 Samples]
Question 10: DIFVAL-Danya-and-Different-Values [⏰ 4 sec] [1 Samples]
Question 11: PPARTS-Perfect-Partitions [⏰ 2 sec] [1 Samples]
Question 12: COVDSMPL-Covid-Sampling-Challenge [⏰ 2 sec] [0 Samples]
Saved in ./ContestFiles/Codechef-JUNE20A
All the problems will be saved in a tree like structure as below::
ContestFiles
└── Codechef-JUNE20A
├── CHFICRM-Chef-and-Icecream.cpp
├── CONTAIN-The-Delicious-Cake.cpp
├── CONVAIR-Convenient-Airports.cpp
├── COVDSMPL-Covid-Sampling-Challenge.cpp
├── DIFVAL-Danya-and-Different-Values.cpp
├── EOEO-The-Tom-and-Jerry-Game.cpp
├── EVENM-Even-Matrix.cpp
├── GUESSG-Guessing-Game.cpp
├── .metadata.json
├── PPARTS-Perfect-Partitions.cpp
├── PRICECON-Chef-and-Price-Control.cpp
├── TTUPLE-Operations-on-a-Tuple.cpp
└── XYSTR-Chef-and-String.cpp