docs(submit): replace static version table with reference to constants.lua
This commit is contained in:
parent
ab67270472
commit
1e1a632af8
1 changed files with 6 additions and 19 deletions
|
|
@ -1054,24 +1054,14 @@ Set {version} globally or per-platform:
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
<
|
<
|
||||||
Available versions per platform ~
|
Available versions ~
|
||||||
|
|
||||||
Platform cpp python java rust
|
Each platform supports all of its own languages and compiler versions.
|
||||||
AtCoder c++20/23 python3, pypy3 java rust
|
The full list of version keys is in `lua/cp/constants.lua` under
|
||||||
Codeforces c++17/20/23 python3, pypy3 - -
|
`LANGUAGE_VERSIONS`. Use any key from that table as the {version} value.
|
||||||
CSES c++17 python3, pypy3 java rust2021
|
|
||||||
Kattis c++17/20/23 python3, python2 java rust
|
|
||||||
USACO c++11/17 python3 java -
|
|
||||||
CodeChef c++20 python3, pypy3 java rust
|
|
||||||
|
|
||||||
Kattis also supports: kotlin, go, haskell, csharp, typescript, javascript,
|
To bypass version lookup entirely, set {submit_id} to the raw platform
|
||||||
ocaml, ruby, scala, zig, swift, dart — use the language key as the version
|
language ID (the value from the platform's submit page dropdown):
|
||||||
key (e.g. version = "kotlin").
|
|
||||||
|
|
||||||
Using a raw platform ID ~
|
|
||||||
|
|
||||||
If your preferred version is not listed, you can bypass version
|
|
||||||
lookup by setting {submit_id} to the raw platform language ID:
|
|
||||||
>lua
|
>lua
|
||||||
platforms = {
|
platforms = {
|
||||||
codeforces = {
|
codeforces = {
|
||||||
|
|
@ -1079,9 +1069,6 @@ lookup by setting {submit_id} to the raw platform language ID:
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
<
|
<
|
||||||
To find the raw ID, open the platform's submit page in your browser,
|
|
||||||
inspect the language dropdown, and copy the <option value="..."> for
|
|
||||||
your desired language.
|
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
OPEN *cp-open*
|
OPEN *cp-open*
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue