2015-07-07 05:33:38 +00:00
|
|
|
# coding=utf-8
|
|
|
|
|
|
|
|
|
|
|
|
languages = {
|
|
|
|
"1": {
|
|
|
|
"name": "c",
|
2015-07-07 10:07:54 +00:00
|
|
|
"src_name": "main.c",
|
2015-07-07 05:33:38 +00:00
|
|
|
"code": 1,
|
2015-07-07 10:07:54 +00:00
|
|
|
"compile_command": "gcc -DONLINE_JUDGE -O2 -Wall -std=c99 -pipe {src_path} -lm -o {exe_path}main",
|
|
|
|
"execute_command": "{exe_path}main"
|
2015-07-07 05:33:38 +00:00
|
|
|
},
|
|
|
|
"2": {
|
|
|
|
"name": "cpp",
|
2015-07-07 10:07:54 +00:00
|
|
|
"src_name": "main.cpp",
|
2015-07-07 05:33:38 +00:00
|
|
|
"code": 2,
|
2015-07-07 10:07:54 +00:00
|
|
|
"compile_command": "g++ -DONLINE_JUDGE -O2 -Wall -std=c++11 -pipe {src_path} -lm -o {exe_path}main",
|
|
|
|
"execute_command": "{exe_path}main"
|
2015-07-07 05:33:38 +00:00
|
|
|
},
|
|
|
|
"3": {
|
|
|
|
"name": "java",
|
2015-07-07 10:07:54 +00:00
|
|
|
"src_name": "Main.java",
|
2015-07-07 05:33:38 +00:00
|
|
|
"code": 3,
|
|
|
|
"compile_command": "javac {src_path} -d {exe_path}",
|
2015-07-07 10:07:54 +00:00
|
|
|
"execute_command": "java -cp {exe_path} Main"
|
2015-07-07 05:33:38 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|