更改项目结构
This commit is contained in:
28
judger/language.py
Normal file
28
judger/language.py
Normal file
@@ -0,0 +1,28 @@
|
||||
# coding=utf-8
|
||||
|
||||
|
||||
languages = {
|
||||
1: {
|
||||
"name": "c",
|
||||
"src_name": "main.c",
|
||||
"code": 1,
|
||||
"compile_command": "gcc -DONLINE_JUDGE -O2 -w -std=c99 -pipe {src_path} -lm -o {exe_path}main",
|
||||
"execute_command": "{exe_path}main"
|
||||
},
|
||||
2: {
|
||||
"name": "cpp",
|
||||
"src_name": "main.cpp",
|
||||
"code": 2,
|
||||
"compile_command": "g++ -DONLINE_JUDGE -O2 -w -std=c++11 -pipe {src_path} -lm -o {exe_path}main",
|
||||
"execute_command": "{exe_path}main"
|
||||
},
|
||||
3: {
|
||||
"name": "java",
|
||||
"src_name": "Main.java",
|
||||
"code": 3,
|
||||
"compile_command": "javac {src_path} -d {exe_path}",
|
||||
"execute_command": "java -cp {exe_path} Main"
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user