Submission language environment

Tools and commands used for test runs and formal submissions.

Environment verified on the judging server

C++

C++17 · -O2

Judge tools
GCC 13.3.0 (g++)
Preparation command
/usr/bin/g++ -std=c++17 -O2 -pipe -fdiagnostics-color=never -fdiagnostics-column-unit=byte -fmessage-length=0 main.cpp -o main
Run command
/box/main

C

C17 · -O2 · -lm

Judge tools
GCC 13.3.0 (gcc)
Preparation command
/usr/bin/gcc -std=c17 -O2 -pipe -fdiagnostics-color=never -fdiagnostics-column-unit=byte -fmessage-length=0 main.c -lm -o main
Run command
/box/main

Python

Isolated mode (-I); standard library

Judge tools
Python 3.12.3
Preparation command
/usr/bin/python3 -I -B -m py_compile main.py
Run command
/usr/bin/python3 -I -B /box/main.py

JavaScript

Node.js built-in modules

Judge tools
Node.js 24.20.0
Preparation command
/usr/local/bin/node --check main.js
Run command
/usr/local/bin/node --max-old-space-size={max(8, floor(memory_bytes / 1048576) - 32)} /box/main.js

TypeScript

ES2022 · CommonJS · strict · Node.js built-in modules and @types/node

Judge tools
TypeScript 5.9.3, Node.js 24.20.0, @types/node 24.10.1
Preparation command
/usr/local/bin/node --max-old-space-size=256 /usr/local/lib/ps-typescript/node_modules/typescript/bin/tsc main.ts --target ES2022 --module commonjs --strict --skipLibCheck --noEmitOnError --typeRoots /usr/local/lib/ps-typescript/node_modules/@types
Run command
/usr/local/bin/node --max-old-space-size={max(8, floor(memory_bytes / 1048576) - 32)} /box/main.js

Code analysis and judging

Editor analysis runs in a separate service and may differ from the Judge result.