修改部分常量定义

增加编译功能
This commit is contained in:
virusdefender
2015-07-07 13:33:38 +08:00
parent cc0f720de9
commit ef88a8a155
5 changed files with 84 additions and 37 deletions

26
judge/language.py Normal file
View File

@@ -0,0 +1,26 @@
# coding=utf-8
languages = {
"1": {
"name": "c",
"code": 1,
"compile_command": "gcc -DONLINE_JUDGE -O2 -Wall -std=c99 -pipe {src_path} -lm -o {exe_path}",
"execute_command": "{exe_path}"
},
"2": {
"name": "cpp",
"code": 2,
"compile_command": "g++ -DONLINE_JUDGE -O2 -Wall -std=c++11 -pipe {src_path} -lm -o {exe_path}",
"execute_command": "{exe_path}"
},
"3": {
"name": "java",
"code": 3,
"compile_command": "javac {src_path} -d {exe_path}",
"execute_command": "java {exe_path}"
}
}