-
Notifications
You must be signed in to change notification settings - Fork 5
Commands
Aditya Kumar edited this page Sep 17, 2020
·
1 revision
cpcli --help
usage: cpcli [-h] [-t TEMPLATE] [-c CONTEST_URI]
{download,init,run,show,testcase} ...
Competitive Programming Helper
positional arguments:
{download,init,run,show,testcase}
optional arguments:
-h, --help show this help message and exit
-t TEMPLATE, --template TEMPLATE
Competitive programming template file
-c CONTEST_URI, --contest-uri CONTEST_URI
Uri format should be: <platform-prefix>::<contest-name>
Contest Prefixes Supported: {'cc': 'Codechef', 'cf': 'Codeforces'}
Eg:
Codeforces: cf::1382
Codechef: cc::JUNE20A
To specify a platform and a contest, we require a URI created based on the platform and the contest details. For example:
- Codeforces
- The URI is created using the contest ID with the
cf::
prefix [cf
stands for codeforces] - URI for the round Codeforces Round #661 (Div. 3) is
cf::1399
. Here1399
is the contest ID. You can get it directly from the contest URL - https://codeforces.com/contest/1399/ .
- The URI is created using the contest ID with the
- Codechef
- The URI is created using the contest name/ID with the
cc::
prefix [cc
stands for codechef] - URI for the round September Challenge 2020 Division 1 is
cc::SEPT20A
. HereSEPT20A
is the contest name/ID. You can get it directly from the contest URL - https://www.codechef.com/SEPT20A .
- The URI is created using the contest name/ID with the
NOTE: The contest URI is case sensitive.
Checkout all the other commands available: