{% extends "oj_base.html" %} {% block body %}
gcc -DONLINE_JUDGE -O2 -w -std=c99 {src_path} -lm -o {exe_path}main
g++ -DONLINE_JUDGE -O2 -w -std=c++11 {src_path} -lm -o {exe_path}main
//编译
javac {src_path} -d {exe_path}
//运行
java -cp {exe_path} Main
int main(),并且需要return 0;。long long 声明,使用 cin/cout 或 %lld 输入输出。
使用__int64会导致编译错误。