Judge programming language configuration

We currently support 4 programming languages on CodeDrills. Here are the details about the versions and compiler arguments.

Language/version Compile command Run command Time limit multiplier
C++ 17 g++ -std=c++17 -DONLINE_JUDGE -O2 -x c++ {code} -o {output} ./{output}
Java 11 javac Main.java java -Xss128M -DONLINE_JUDGE=1 Main 2x
Python 3 python {output} 3x
Kotlin 1.3 kotlinc -jvm-target 11 {code} kotlin {output} 2x

Note that TL multipliers are subject to contest rules. Some contests may not allow them.

Let us know below if you would like to have specific flags that are generally used in online judges (please include a justification).

2 Likes