The programming languages and exact compiler and interpreter versions installed in the judging machines, and the exact compilation commands used for judging, for the NOI.PH 2021 Final Round are described below. Note that these configurations are subject to change.

Compilers and Interpreters

  • GCC 9.3.0
  • OpenJDK 11.0.11
  • Python 2.7.18
  • Python 3.8.5
  • Pypy 7.3.4 with Python 3.7.10 compatibility

Compilation and Execution Commands

C++

g++ -DEVAL -std=gnu++17 -O2 -pipe -static -s -o program program.cpp

Java

javac program.java
sh -c jar cf program *.class
java -Deval=true -Xmx512M -Xss64M -cp program

Python 2

python2 -m compileall .
mv program.pyc __main__.pyc
zip -r program.zip __main__.pyc
mv program.zip program
python2 program

Python 3

python3 -m compileall -b .
mv program.pyc __main__.pyc
zip -r program.zip __main__.pyc
mv program.zip program
python3 program

PyPy 3

pypy3 -m compileall -b .
mv program.pyc __main__.pyc
zip -r program.zip __main__.pyc
mv program.zip program
pypy3 program