forked from lugnitdgp/Online-Judge
-
Notifications
You must be signed in to change notification settings - Fork 0
/
language_model.json
56 lines (56 loc) · 2.34 KB
/
language_model.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
[
{
"model": "interface.programming_language", "pk": 1,
"fields": {
"name": "c",
"ext": "c",
"compile_command": "gcc -Wno-deprecated {} -o compiled_code 2> compile_log",
"run_command": "sudo {engine_path} --cpu {time} --mem {mem} --usage usage.txt --exec compiled_code < {in_file} > {temp_out_file}",
"multiplier_name": "c_cpp_multiplier"
}
},
{
"model": "interface.programming_language",
"pk": 2,
"fields": {
"name": "c++",
"ext": "cpp",
"compile_command": "g++ -o compiled_code {} 2> compile_log",
"run_command": "sudo {engine_path} --cpu {time} --mem {mem} --usage usage.txt --exec compiled_code < {in_file} > {temp_out_file}",
"multiplier_name": "c_cpp_multiplier"
}
},
{
"model": "interface.programming_language",
"pk": 3,
"fields": {
"name": "java",
"ext": "java",
"compile_command": "javac {} 2> compile_log",
"run_command": "sudo {engine_path} --cpu {time} --mem {mem} --nproc 20 --usage usage.txt --exec /usr/bin/java -cp {outpath} test < {in_file} > {temp_out_file}",
"multiplier_name": "java_multipler"
}
},
{
"model": "interface.programming_language",
"pk": 4,
"fields": {
"name": "python2",
"ext": "py",
"compile_command": "python2 -m py_compile {} 2> compile_log",
"run_command": "sudo {engine_path} --cpu {time} --mem {mem} --usage usage.txt --exec /usr/bin/python2 {f} < {in_file} > {temp_out_file}",
"multiplier_name": "python_multiplier"
}
},
{
"model": "interface.programming_language",
"pk": 5,
"fields": {
"name": "python3",
"ext": "py",
"compile_command": "python3 -m py_compile {} 2> compile_log",
"run_command": "sudo {engine_path} --cpu {time} --mem {mem} --usage usage.txt --exec /usr/bin/python3 {f} < {in_file} > {temp_out_file}",
"multiplier_name": "python_multiplier"
}
}
]