删除无用代码并且新增流程图相关内容
This commit is contained in:
@@ -35,20 +35,6 @@ int main() {
|
||||
}
|
||||
}
|
||||
|
||||
_c_lang_spj_compile = {
|
||||
"src_name": "spj-{spj_version}.c",
|
||||
"exe_name": "spj-{spj_version}",
|
||||
"max_cpu_time": 3000,
|
||||
"max_real_time": 10000,
|
||||
"max_memory": 1024 * 1024 * 1024,
|
||||
"compile_command": "/usr/bin/gcc -DONLINE_JUDGE -O2 -w -fmax-errors=3 -std=c17 {src_path} -lm -o {exe_path}"
|
||||
}
|
||||
|
||||
_c_lang_spj_config = {
|
||||
"exe_name": "spj-{spj_version}",
|
||||
"command": "{exe_path} {in_file_path} {user_out_file_path}",
|
||||
"seccomp_rule": "c_cpp"
|
||||
}
|
||||
|
||||
_cpp_lang_config = {
|
||||
"template": """//PREPEND BEGIN
|
||||
@@ -82,20 +68,6 @@ int main() {
|
||||
}
|
||||
}
|
||||
|
||||
_cpp_lang_spj_compile = {
|
||||
"src_name": "spj-{spj_version}.cpp",
|
||||
"exe_name": "spj-{spj_version}",
|
||||
"max_cpu_time": 10000,
|
||||
"max_real_time": 20000,
|
||||
"max_memory": 1024 * 1024 * 1024,
|
||||
"compile_command": "/usr/bin/g++ -DONLINE_JUDGE -O2 -w -fmax-errors=3 -std=c++20 {src_path} -lm -o {exe_path}"
|
||||
}
|
||||
|
||||
_cpp_lang_spj_config = {
|
||||
"exe_name": "spj-{spj_version}",
|
||||
"command": "{exe_path} {in_file_path} {user_out_file_path}",
|
||||
"seccomp_rule": "c_cpp"
|
||||
}
|
||||
|
||||
_java_lang_config = {
|
||||
"template": """//PREPEND BEGIN
|
||||
@@ -224,10 +196,8 @@ console.log(add(1, 2))
|
||||
}
|
||||
|
||||
languages = [
|
||||
{"config": _c_lang_config, "name": "C", "description": "GCC 13", "content_type": "text/x-csrc",
|
||||
"spj": {"compile": _c_lang_spj_compile, "config": _c_lang_spj_config}},
|
||||
{"config": _cpp_lang_config, "name": "C++", "description": "GCC 13", "content_type": "text/x-c++src",
|
||||
"spj": {"compile": _cpp_lang_spj_compile, "config": _cpp_lang_spj_config}},
|
||||
{"config": _c_lang_config, "name": "C", "description": "GCC 13", "content_type": "text/x-csrc"},
|
||||
{"config": _cpp_lang_config, "name": "C++", "description": "GCC 13", "content_type": "text/x-c++src"},
|
||||
{"config": _java_lang_config, "name": "Java", "description": "Temurin 21", "content_type": "text/x-java"},
|
||||
{"config": _py3_lang_config, "name": "Python3", "description": "Python 3.12", "content_type": "text/x-python"},
|
||||
{"config": _go_lang_config, "name": "Golang", "description": "Golang 1.22", "content_type": "text/x-go"},
|
||||
|
||||
Reference in New Issue
Block a user