C:gcc test.c -o Main -O -Wall -lm --static -std=c99 -DONLINE_JUDGE
C++:g++ test.cc -o Main -O -Wall -lm --static -DONLINE_JUDGE
Java:javac -J-Xms32m -J-Xmx256m Main.java
*Java has 2 more seconds and 512M more memory when running and judging.
编译器版本为(系统可能升级编译器版本,这里仅供参考):
Ubuntu 12.04.5 LTS (Linux version 3.13.0-107-generic x86_64)
gcc version 4.6.3
java version "1.7.0_121"
OpenJDK Runtime Environment (IcedTea 2.6.8) (7u121-2.6.8-1ubuntu0.12.04.3)
OpenJDK 64-Bit Server VM (build 24.121-b00, mixed mode)
Python version 2.7.3
Python version 3.5.2