fix: complete language version IDs for all platforms (#350)

## Problem

`LANGUAGE_VERSIONS` only covered cpp and python. Several platform IDs
were wrong — CodeChef used `C++ 17`/`Python 3` (correct: `C++`/`PYTH
3`), USACO listed nonexistent c++20/c++23 options, and CSES only had
C++17.

## Solution

Verify every platform's submit page and update all language ID tables.
Add java and rust entries where supported, fix incorrect CodeChef and
USACO IDs, and expand CSES `CSES_LANGUAGES` dict with
C++11/C++20/PyPy3/Java/Rust variants.
This commit is contained in:
Barrett Ruth 2026-03-06 19:28:06 -05:00 committed by GitHub
parent 2776aaeb21
commit 425a8f36e9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 64 additions and 34 deletions

View file

@ -31,13 +31,25 @@ HEADERS = {
CONNECTIONS = 8
CSES_LANGUAGES: dict[str, dict[str, str]] = {
"C++11": {"name": "C++", "option": "C++11"},
"C++17": {"name": "C++", "option": "C++17"},
"Python3": {"name": "Python", "option": "CPython3"},
"C++20": {"name": "C++", "option": "C++20"},
"Python3": {"name": "Python3", "option": "CPython3"},
"PyPy3": {"name": "Python3", "option": "PyPy3"},
"Java": {"name": "Java", "option": "Java"},
"Rust2018": {"name": "Rust", "option": "2018"},
"Rust2021": {"name": "Rust", "option": "2021"},
}
EXTENSIONS: dict[str, str] = {
"C++11": "cpp",
"C++17": "cpp",
"C++20": "cpp",
"Python3": "py",
"PyPy3": "py",
"Java": "java",
"Rust2018": "rs",
"Rust2021": "rs",
}

View file

@ -2,6 +2,8 @@ LANGUAGE_IDS = {
"atcoder": {
"cpp": "6017",
"python": "6082",
"java": "6056",
"rust": "6088",
},
"codeforces": {
"cpp": "89",
@ -10,18 +12,25 @@ LANGUAGE_IDS = {
"cses": {
"cpp": "C++17",
"python": "Python3",
"java": "Java",
"rust": "Rust2021",
},
"usaco": {
"cpp": "cpp",
"python": "python",
"java": "java",
},
"kattis": {
"cpp": "C++",
"python": "Python 3",
"java": "Java",
"rust": "Rust",
},
"codechef": {
"cpp": "C++ 17",
"python": "Python 3",
"cpp": "C++",
"python": "PYTH 3",
"java": "JAVA",
"rust": "rust",
},
}