-
Notifications
You must be signed in to change notification settings - Fork 21
/
langs.toml
135 lines (135 loc) · 4.42 KB
/
langs.toml
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
[[langs]]
id = "checker"
source = "checker.cpp"
image_name = "library-checker-images-gcc"
compile = ["g++", "-O2", "-std=c++14", "-DEVAL", "-march=native", "-o", "checker", "checker.cpp"]
exec = ["./checker", "input.in", "actual.out", "expect.out"]
[[langs]]
id = "cpp-func"
name = "C++20(Function)"
version = "g++(13.2) + ac-library 1.4"
source = "main.cpp"
image_name = "library-checker-images-gcc"
compile = ["g++", "-O2", "-std=c++20", "-DEVAL", "-march=native", "-o", "main", "grader.cpp", "main.cpp", "-I", "/opt/ac-library"]
exec = ["./main"]
additional_files = ["common/fastio.h", "grader/grader.cpp", "grader/solve.hpp"]
[[langs]]
id = "cpp"
name = "C++20"
version = "g++(13.2)"
source = "main.cpp"
image_name = "library-checker-images-gcc"
compile = ["g++", "-O2", "-std=c++20", "-DEVAL", "-march=native", "-o", "main", "main.cpp"]
exec = ["./main"]
[[langs]]
id = "cpp-acl"
name = "C++20(ACL)"
version = "g++(13.2) + ac-library 1.5.1"
source = "main.cpp"
image_name = "library-checker-images-gcc"
compile = ["g++", "-O2", "-std=c++20", "-DEVAL", "-march=native", "-o", "main", "main.cpp", "-I", "/opt/ac-library"]
exec = ["./main"]
[[langs]]
id = "cpp17"
name = "C++17"
version = "g++(13.2)"
source = "main.cpp"
image_name = "library-checker-images-gcc"
compile = ["g++", "-O2", "-std=c++17", "-DEVAL", "-march=native", "-o", "main", "main.cpp"]
exec = ["./main"]
[[langs]]
id = "cpp14"
name = "C++14"
version = "g++(13.2)"
source = "main.cpp"
image_name = "library-checker-images-gcc"
compile = ["g++", "-O2", "-std=c++14", "-DEVAL", "-march=native", "-o", "main", "main.cpp"]
exec = ["./main"]
[[langs]]
id = "rust"
name = "Rust"
version = "rustc(1.71.1 edition 2021)"
source = "main.rs"
image_name = "library-checker-images-rust"
compile = ["rustc", "--edition", "2021", "-C", "opt-level=3", "main.rs"]
exec = ["./main"]
[[langs]]
id = "d"
name = "LDC2"
version = "ldc2 1.29.0"
source = "main.d"
image_name = "library-checker-images-ldc"
compile = ["ldc2", "-O", "-release", "main.d"]
exec = ["./main"]
[[langs]]
id = "java"
name = "Java"
version = "openjdk 17"
source = "Main.java"
image_name = "library-checker-images-java"
compile = ["javac", "Main.java"]
exec = ["java", "-Xss1G", "-Xmx1G", "Main"]
[[langs]]
id = "python3"
name = "Python3"
version = "python3.10 + numpy + scipy"
source = "main.py"
image_name = "library-checker-images-python3"
compile = ["sh", "-c", "echo | python3 -c 'import main.py' || :"]
exec = ["python3", "main.py"]
[[langs]]
id = "pypy3"
name = "PyPy3"
version = "pypy3.9-7.3.9"
source = "main.py"
image_name = "library-checker-images-pypy"
compile = ["pypy3", "-c", "'print(1)'"]
exec = ["pypy3", "main.py"]
[[langs]]
id = "haskell"
name = "GHC"
version = "ghc 9.0.2"
source = "main.hs"
image_name = "library-checker-images-haskell"
compile = ["ghc", "main.hs", "-O2"]
exec = ["./main"]
[[langs]]
id = "csharp"
name = "C#"
version = "dotnet 7.0"
source = "Program.cs"
image_name = "library-checker-images-csharp"
compile = ["sh", "-c", "cp -r /opt/C-Sharp C-Sharp && cp Program.cs C-Sharp/Program.cs && dotnet publish C-Sharp -c Release -r linux-x64 -o bin"]
exec = ["./bin/C-Sharp"]
[[langs]]
id = "go"
name = "Go"
version = "go 1.18.2"
source = "main.go"
image_name = "library-checker-images-golang"
compile = ["go", "build", "main.go"]
exec = ["./main"]
[[langs]]
id = "lisp"
name = "Common Lisp"
version = "sbcl 2.1.5"
source = "main.lisp"
image_name = "library-checker-images-lisp"
compile = ["sbcl", "--noinform", "--eval", "(compile-file \"main.lisp\")", "--quit"]
exec = ["sbcl", "--control-stack-size", "1GB", "--script", "main.fasl"]
[[langs]]
id = "crystal"
name = "Crystal"
version = "crystal 1.9.1"
source = "main.cr"
image_name = "library-checker-images-crystal"
compile = ["crystal", "build", "--release", "--no-debug", "--no-color", "-o", "./a.out", "./main.cr"]
exec = ["./a.out"]
[[langs]]
id = "ruby"
name = "Ruby"
version = "ruby 2.7.1"
source = "main.rb"
image_name = "library-checker-images-ruby"
compile = ["ruby", "-w", "-c", "main.rb"]
exec = ["ruby", "main.rb"]