@euler-edu/constant 0.0.0-stage → 7.0.1-beta0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/.tsbuildinfo +1 -0
- package/lib/clients/index.d.ts +1 -0
- package/lib/clients/index.js +18 -0
- package/lib/clients/index.js.map +1 -0
- package/lib/clients/platforms.d.ts +2 -0
- package/lib/clients/platforms.js +13 -0
- package/lib/clients/platforms.js.map +1 -0
- package/lib/oj-contest/index.d.ts +20 -0
- package/lib/oj-contest/index.js +14 -0
- package/lib/oj-contest/index.js.map +1 -0
- package/lib/oj-contest/pastContests.d.ts +16 -0
- package/lib/oj-contest/pastContests.js +1181 -0
- package/lib/oj-contest/pastContests.js.map +1 -0
- package/lib/oj-explore/algorithms.d.ts +706 -0
- package/lib/oj-explore/algorithms.js +716 -0
- package/lib/oj-explore/algorithms.js.map +1 -0
- package/lib/oj-explore/books.d.ts +68 -0
- package/lib/oj-explore/books.js +59 -0
- package/lib/oj-explore/books.js.map +1 -0
- package/lib/oj-explore/index.d.ts +1738 -0
- package/lib/oj-explore/index.js +52 -0
- package/lib/oj-explore/index.js.map +1 -0
- package/lib/oj-explore/root.d.ts +64 -0
- package/lib/oj-explore/root.js +50 -0
- package/lib/oj-explore/root.js.map +1 -0
- package/lib/oj-explore/sources.d.ts +44 -0
- package/lib/oj-explore/sources.js +40 -0
- package/lib/oj-explore/sources.js.map +1 -0
- package/lib/oj-mail/index.d.ts +3 -0
- package/lib/oj-mail/index.js +7 -0
- package/lib/oj-mail/index.js.map +1 -0
- package/lib/oj-problem/index.d.ts +7 -0
- package/lib/oj-problem/index.js +9 -0
- package/lib/oj-problem/index.js.map +1 -0
- package/lib/oj-problem/orders.d.ts +6 -0
- package/lib/oj-problem/orders.js +38 -0
- package/lib/oj-problem/orders.js.map +1 -0
- package/lib/oj-record/index.d.ts +100 -0
- package/lib/oj-record/index.js +9 -0
- package/lib/oj-record/index.js.map +1 -0
- package/lib/oj-record/trophies.d.ts +97 -0
- package/lib/oj-record/trophies.js +97 -0
- package/lib/oj-record/trophies.js.map +1 -0
- package/lib/oj-scoringRequest/index.d.ts +3 -0
- package/lib/oj-scoringRequest/index.js +7 -0
- package/lib/oj-scoringRequest/index.js.map +1 -0
- package/lib/oj-submit/defaultCodes.d.ts +7 -0
- package/lib/oj-submit/defaultCodes.js +31 -0
- package/lib/oj-submit/defaultCodes.js.map +1 -0
- package/lib/oj-submit/index.d.ts +246 -0
- package/lib/oj-submit/index.js +14 -0
- package/lib/oj-submit/index.js.map +1 -0
- package/lib/oj-submit/languages.d.ts +256 -0
- package/lib/oj-submit/languages.js +236 -0
- package/lib/oj-submit/languages.js.map +1 -0
- package/lib/oj-submit/statuses.d.ts +4 -0
- package/lib/oj-submit/statuses.js +27 -0
- package/lib/oj-submit/statuses.js.map +1 -0
- package/lib/oj-youtube/index.d.ts +1 -0
- package/lib/oj-youtube/index.js +11 -0
- package/lib/oj-youtube/index.js.map +1 -0
- package/lib/shortcuts/index.d.ts +39 -0
- package/lib/shortcuts/index.js +286 -0
- package/lib/shortcuts/index.js.map +1 -0
- package/lib/styles/editor.d.ts +11 -0
- package/lib/styles/editor.js +9 -0
- package/lib/styles/editor.js.map +1 -0
- package/lib/styles/font.d.ts +42 -0
- package/lib/styles/font.js +36 -0
- package/lib/styles/font.js.map +1 -0
- package/lib/styles/index.d.ts +3 -0
- package/lib/styles/index.js +20 -0
- package/lib/styles/index.js.map +1 -0
- package/lib/styles/theme.d.ts +4 -0
- package/lib/styles/theme.js +14 -0
- package/lib/styles/theme.js.map +1 -0
- package/package.json +25 -3
- package/README.md +0 -3
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/oj-scoringRequest/index.ts"],"names":[],"mappings":";;;AAAa,QAAA,gBAAgB,GAAG;IAC9B,QAAQ,EAAE,CAAC,SAAS,EAAE,YAAY,EAAE,WAAW,EAAE,WAAW,CAAC;CACrD,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.defaultCodes = void 0;
|
|
4
|
+
exports.defaultCodes = {
|
|
5
|
+
cpp: [
|
|
6
|
+
'#include <iostream>',
|
|
7
|
+
'',
|
|
8
|
+
'int main() {',
|
|
9
|
+
'\tprintf("Hello Euler!");',
|
|
10
|
+
'\treturn 0;',
|
|
11
|
+
'}',
|
|
12
|
+
],
|
|
13
|
+
python: ['print("Hello Euler!")'],
|
|
14
|
+
c: [
|
|
15
|
+
'#include <stdio.h>',
|
|
16
|
+
'',
|
|
17
|
+
'int main() {',
|
|
18
|
+
'\tprintf("Hello Euler!");',
|
|
19
|
+
'\treturn 0;',
|
|
20
|
+
'}',
|
|
21
|
+
],
|
|
22
|
+
java: [
|
|
23
|
+
'public class Main {',
|
|
24
|
+
'\tpublic static void main(String[] args) {',
|
|
25
|
+
'\t\tSystem.out.println("Hello Euler!");',
|
|
26
|
+
'\t}',
|
|
27
|
+
'}',
|
|
28
|
+
],
|
|
29
|
+
r: ['cat("Hello Euler!")'],
|
|
30
|
+
};
|
|
31
|
+
//# sourceMappingURL=defaultCodes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"defaultCodes.js","sourceRoot":"","sources":["../../src/oj-submit/defaultCodes.ts"],"names":[],"mappings":";;;AAEa,QAAA,YAAY,GAAG;IAC1B,GAAG,EAAE;QACH,qBAAqB;QACrB,EAAE;QACF,cAAc;QACd,2BAA2B;QAC3B,aAAa;QACb,GAAG;KACJ;IACD,MAAM,EAAE,CAAC,uBAAuB,CAAC;IACjC,CAAC,EAAE;QACD,oBAAoB;QACpB,EAAE;QACF,cAAc;QACd,2BAA2B;QAC3B,aAAa;QACb,GAAG;KACJ;IACD,IAAI,EAAE;QACJ,qBAAqB;QACrB,4CAA4C;QAC5C,yCAAyC;QACzC,KAAK;QACL,GAAG;KACJ;IACD,CAAC,EAAE,CAAC,qBAAqB,CAAC;CACmB,CAAC"}
|
|
@@ -0,0 +1,246 @@
|
|
|
1
|
+
import { type Environment, type Language } from './languages';
|
|
2
|
+
import { type Status, type TestcaseResult } from './statuses';
|
|
3
|
+
export declare const ojSubmit: {
|
|
4
|
+
readonly environments: {
|
|
5
|
+
readonly c: {
|
|
6
|
+
readonly language: "c";
|
|
7
|
+
readonly version: "C11";
|
|
8
|
+
readonly toolchain: "GCC 11.2.0";
|
|
9
|
+
readonly name: "C11 (GCC) (deprecated)";
|
|
10
|
+
readonly isSubmittable: false;
|
|
11
|
+
readonly docker: {
|
|
12
|
+
readonly image: "gcc:11.2.0";
|
|
13
|
+
readonly fileName: "source.c";
|
|
14
|
+
readonly compile: "gcc /root/source.c -o test";
|
|
15
|
+
readonly test: "./test";
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
readonly c11: {
|
|
19
|
+
readonly language: "c";
|
|
20
|
+
readonly version: "C11";
|
|
21
|
+
readonly toolchain: "GCC 11.2.0";
|
|
22
|
+
readonly name: "C11 (GCC)";
|
|
23
|
+
readonly isSubmittable: true;
|
|
24
|
+
readonly docker: {
|
|
25
|
+
readonly image: "gcc:11.2.0";
|
|
26
|
+
readonly fileName: "source.c";
|
|
27
|
+
readonly compile: "gcc /root/source.c -o test -std=c11";
|
|
28
|
+
readonly test: "./test";
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
readonly 'c++': {
|
|
32
|
+
readonly language: "cpp";
|
|
33
|
+
readonly version: "C++11";
|
|
34
|
+
readonly toolchain: "GCC 11.2.0";
|
|
35
|
+
readonly name: "C++11 (GCC) (deprecated)";
|
|
36
|
+
readonly isSubmittable: false;
|
|
37
|
+
readonly docker: {
|
|
38
|
+
readonly image: "gcc:11.2.0";
|
|
39
|
+
readonly fileName: "source.cpp";
|
|
40
|
+
readonly compile: "g++ /root/source.cpp -o test -std=c++11";
|
|
41
|
+
readonly test: "./test";
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
readonly 'c++11': {
|
|
45
|
+
readonly language: "cpp";
|
|
46
|
+
readonly version: "C++11";
|
|
47
|
+
readonly toolchain: "GCC 11.2.0";
|
|
48
|
+
readonly name: "C++11 (GCC)";
|
|
49
|
+
readonly isSubmittable: true;
|
|
50
|
+
readonly docker: {
|
|
51
|
+
readonly image: "gcc:11.2.0";
|
|
52
|
+
readonly fileName: "source.cpp";
|
|
53
|
+
readonly compile: "g++ /root/source.cpp -o test -std=c++11";
|
|
54
|
+
readonly test: "./test";
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
readonly 'c++14': {
|
|
58
|
+
readonly language: "cpp";
|
|
59
|
+
readonly version: "C++14";
|
|
60
|
+
readonly toolchain: "GCC 11.2.0";
|
|
61
|
+
readonly name: "C++14 (GCC)";
|
|
62
|
+
readonly isSubmittable: true;
|
|
63
|
+
readonly docker: {
|
|
64
|
+
readonly image: "gcc:11.2.0";
|
|
65
|
+
readonly fileName: "source.cpp";
|
|
66
|
+
readonly compile: "g++ /root/source.cpp -o test -std=c++14";
|
|
67
|
+
readonly test: "./test";
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
readonly 'c++17': {
|
|
71
|
+
readonly language: "cpp";
|
|
72
|
+
readonly version: "C++17";
|
|
73
|
+
readonly toolchain: "GCC 11.2.0";
|
|
74
|
+
readonly name: "C++17 (GCC)";
|
|
75
|
+
readonly isSubmittable: true;
|
|
76
|
+
readonly docker: {
|
|
77
|
+
readonly image: "gcc:11.2.0";
|
|
78
|
+
readonly fileName: "source.cpp";
|
|
79
|
+
readonly compile: "g++ /root/source.cpp -o test -std=c++17";
|
|
80
|
+
readonly test: "./test";
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
readonly python2: {
|
|
84
|
+
readonly language: "python";
|
|
85
|
+
readonly version: "Python 2.7";
|
|
86
|
+
readonly toolchain: "Python 2.7.18";
|
|
87
|
+
readonly name: "Python 2.7";
|
|
88
|
+
readonly isSubmittable: true;
|
|
89
|
+
readonly docker: {
|
|
90
|
+
readonly image: "python:2.7";
|
|
91
|
+
readonly fileName: "source.py";
|
|
92
|
+
readonly compile: null;
|
|
93
|
+
readonly test: "python2 /root/source.py";
|
|
94
|
+
};
|
|
95
|
+
};
|
|
96
|
+
readonly python3: {
|
|
97
|
+
readonly language: "python";
|
|
98
|
+
readonly version: "Python 3.11";
|
|
99
|
+
readonly toolchain: "Python 3.11.4";
|
|
100
|
+
readonly name: "Python 3.11";
|
|
101
|
+
readonly isSubmittable: true;
|
|
102
|
+
readonly docker: {
|
|
103
|
+
readonly image: "python:3.11.4";
|
|
104
|
+
readonly fileName: "source.py";
|
|
105
|
+
readonly compile: null;
|
|
106
|
+
readonly test: "python3 /root/source.py";
|
|
107
|
+
};
|
|
108
|
+
};
|
|
109
|
+
readonly pypy3: {
|
|
110
|
+
readonly language: "python";
|
|
111
|
+
readonly version: "Python 3.10";
|
|
112
|
+
readonly toolchain: "PyPy 7.3.12";
|
|
113
|
+
readonly name: "Python 3.10 (PyPy)";
|
|
114
|
+
readonly isSubmittable: true;
|
|
115
|
+
readonly docker: {
|
|
116
|
+
readonly image: "pypy:3.10-7.3.12";
|
|
117
|
+
readonly fileName: "source.py";
|
|
118
|
+
readonly compile: null;
|
|
119
|
+
readonly test: "pypy3 /root/source.py";
|
|
120
|
+
};
|
|
121
|
+
};
|
|
122
|
+
readonly openjdk: {
|
|
123
|
+
readonly language: "java";
|
|
124
|
+
readonly version: "Java 11";
|
|
125
|
+
readonly toolchain: "OpenJDK 11";
|
|
126
|
+
readonly name: "Java 11 (OpenJDK)";
|
|
127
|
+
readonly isSubmittable: true;
|
|
128
|
+
readonly docker: {
|
|
129
|
+
readonly image: "openjdk:11";
|
|
130
|
+
readonly fileName: "Main.java";
|
|
131
|
+
readonly compile: "javac /root/Main.java";
|
|
132
|
+
readonly test: "java -Xms256m -Xmx256m -Xss256m -cp /root Main";
|
|
133
|
+
};
|
|
134
|
+
};
|
|
135
|
+
readonly ruby: {
|
|
136
|
+
readonly language: "ruby";
|
|
137
|
+
readonly version: "Ruby 3.2";
|
|
138
|
+
readonly toolchain: "Ruby 3.2.2";
|
|
139
|
+
readonly name: "Ruby 3.2";
|
|
140
|
+
readonly isSubmittable: true;
|
|
141
|
+
readonly docker: {
|
|
142
|
+
readonly image: "ruby:3.2.2";
|
|
143
|
+
readonly fileName: "source.rb";
|
|
144
|
+
readonly compile: null;
|
|
145
|
+
readonly test: "ruby /root/source.rb";
|
|
146
|
+
};
|
|
147
|
+
};
|
|
148
|
+
readonly golang: {
|
|
149
|
+
readonly language: "go";
|
|
150
|
+
readonly version: "Go 1.17";
|
|
151
|
+
readonly toolchain: "Golang 1.17.7";
|
|
152
|
+
readonly name: "Go 1.17";
|
|
153
|
+
readonly isSubmittable: true;
|
|
154
|
+
readonly docker: {
|
|
155
|
+
readonly image: "golang:1.17.7";
|
|
156
|
+
readonly fileName: "source.go";
|
|
157
|
+
readonly option: {
|
|
158
|
+
readonly deleteDot: true;
|
|
159
|
+
};
|
|
160
|
+
readonly compile: "go build /root/source.go";
|
|
161
|
+
readonly test: "./source";
|
|
162
|
+
};
|
|
163
|
+
};
|
|
164
|
+
readonly r: {
|
|
165
|
+
readonly language: "r";
|
|
166
|
+
readonly version: "R 3.6";
|
|
167
|
+
readonly toolchain: "R 3.6.3";
|
|
168
|
+
readonly name: "R 3.6";
|
|
169
|
+
readonly isSubmittable: true;
|
|
170
|
+
readonly docker: {
|
|
171
|
+
readonly image: "r-base:3.6.3";
|
|
172
|
+
readonly fileName: "source.R";
|
|
173
|
+
readonly compile: null;
|
|
174
|
+
readonly test: "Rscript /root/source.R";
|
|
175
|
+
};
|
|
176
|
+
};
|
|
177
|
+
};
|
|
178
|
+
readonly languages: {
|
|
179
|
+
readonly c: {
|
|
180
|
+
readonly name: "C";
|
|
181
|
+
readonly versions: ["C11", "C17", "C18", "C23"];
|
|
182
|
+
readonly toolchains: ["GCC 11.2.0"];
|
|
183
|
+
readonly extension: "c";
|
|
184
|
+
readonly editor: "c";
|
|
185
|
+
};
|
|
186
|
+
readonly cpp: {
|
|
187
|
+
readonly name: "C++";
|
|
188
|
+
readonly versions: ["C++11", "C++14", "C++17", "C++20", "C++23", "C++26"];
|
|
189
|
+
readonly toolchains: ["GCC 11.2.0"];
|
|
190
|
+
readonly extension: "cpp";
|
|
191
|
+
readonly editor: "cpp";
|
|
192
|
+
};
|
|
193
|
+
readonly python: {
|
|
194
|
+
readonly name: "Python";
|
|
195
|
+
readonly versions: ["Python 2.7", "Python 3.10", "Python 3.11"];
|
|
196
|
+
readonly toolchains: ["Python 2.7.18", "Python 3.11.4", "PyPy 7.3.12"];
|
|
197
|
+
readonly extension: "py";
|
|
198
|
+
readonly editor: "python";
|
|
199
|
+
};
|
|
200
|
+
readonly java: {
|
|
201
|
+
readonly name: "Java";
|
|
202
|
+
readonly versions: ["Java 8", "Java 11", "Java 17", "Java 21"];
|
|
203
|
+
readonly toolchains: ["OpenJDK 11"];
|
|
204
|
+
readonly extension: "java";
|
|
205
|
+
readonly editor: "java";
|
|
206
|
+
};
|
|
207
|
+
readonly ruby: {
|
|
208
|
+
readonly name: "Ruby";
|
|
209
|
+
readonly versions: ["Ruby 3.2"];
|
|
210
|
+
readonly toolchains: ["Ruby 3.2.2"];
|
|
211
|
+
readonly extension: "rb";
|
|
212
|
+
readonly editor: "ruby";
|
|
213
|
+
};
|
|
214
|
+
readonly go: {
|
|
215
|
+
readonly name: "Go";
|
|
216
|
+
readonly versions: ["Go 1.17"];
|
|
217
|
+
readonly toolchains: ["Golang 1.17.7"];
|
|
218
|
+
readonly extension: "go";
|
|
219
|
+
readonly editor: "go";
|
|
220
|
+
};
|
|
221
|
+
readonly r: {
|
|
222
|
+
readonly name: "R";
|
|
223
|
+
readonly versions: ["R 3.6"];
|
|
224
|
+
readonly toolchains: ["R 3.6.3"];
|
|
225
|
+
readonly extension: "r";
|
|
226
|
+
readonly editor: "r";
|
|
227
|
+
};
|
|
228
|
+
readonly javascript: {
|
|
229
|
+
readonly name: "JavaScript";
|
|
230
|
+
readonly versions: ["ES5", "ES6", "ES2025"];
|
|
231
|
+
readonly toolchains: ["Node 26.8.1"];
|
|
232
|
+
readonly extension: "js";
|
|
233
|
+
readonly editor: "javascript";
|
|
234
|
+
};
|
|
235
|
+
};
|
|
236
|
+
readonly statuses: readonly ["accept", "wrong", "time", "memory", "compile", "runtime", "server", "output", "pending"];
|
|
237
|
+
readonly testcaseResults: readonly ["accept", "wrong", "time", "memory", "compile", "runtime", "server", "output", "pending", "ignored"];
|
|
238
|
+
readonly defaultCodes: {
|
|
239
|
+
cpp: string[];
|
|
240
|
+
python: string[];
|
|
241
|
+
c: string[];
|
|
242
|
+
java: string[];
|
|
243
|
+
r: string[];
|
|
244
|
+
};
|
|
245
|
+
};
|
|
246
|
+
export type { Environment, Language, Status, TestcaseResult };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ojSubmit = void 0;
|
|
4
|
+
const defaultCodes_1 = require("./defaultCodes");
|
|
5
|
+
const languages_1 = require("./languages");
|
|
6
|
+
const statuses_1 = require("./statuses");
|
|
7
|
+
exports.ojSubmit = {
|
|
8
|
+
environments: languages_1.environments,
|
|
9
|
+
languages: languages_1.languages,
|
|
10
|
+
statuses: statuses_1.statuses,
|
|
11
|
+
testcaseResults: statuses_1.testcaseResults,
|
|
12
|
+
defaultCodes: defaultCodes_1.defaultCodes,
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/oj-submit/index.ts"],"names":[],"mappings":";;;AAAA,iDAA8C;AAC9C,2CAKqB;AACrB,yCAKoB;AAEP,QAAA,QAAQ,GAAG;IACtB,YAAY,EAAZ,wBAAY;IACZ,SAAS,EAAT,qBAAS;IACT,QAAQ,EAAR,mBAAQ;IACR,eAAe,EAAf,0BAAe;IACf,YAAY,EAAZ,2BAAY;CACJ,CAAC"}
|
|
@@ -0,0 +1,256 @@
|
|
|
1
|
+
export declare const languages: {
|
|
2
|
+
readonly c: {
|
|
3
|
+
readonly name: "C";
|
|
4
|
+
readonly versions: ["C11", "C17", "C18", "C23"];
|
|
5
|
+
readonly toolchains: ["GCC 11.2.0"];
|
|
6
|
+
readonly extension: "c";
|
|
7
|
+
readonly editor: "c";
|
|
8
|
+
};
|
|
9
|
+
readonly cpp: {
|
|
10
|
+
readonly name: "C++";
|
|
11
|
+
readonly versions: ["C++11", "C++14", "C++17", "C++20", "C++23", "C++26"];
|
|
12
|
+
readonly toolchains: ["GCC 11.2.0"];
|
|
13
|
+
readonly extension: "cpp";
|
|
14
|
+
readonly editor: "cpp";
|
|
15
|
+
};
|
|
16
|
+
readonly python: {
|
|
17
|
+
readonly name: "Python";
|
|
18
|
+
readonly versions: ["Python 2.7", "Python 3.10", "Python 3.11"];
|
|
19
|
+
readonly toolchains: ["Python 2.7.18", "Python 3.11.4", "PyPy 7.3.12"];
|
|
20
|
+
readonly extension: "py";
|
|
21
|
+
readonly editor: "python";
|
|
22
|
+
};
|
|
23
|
+
readonly java: {
|
|
24
|
+
readonly name: "Java";
|
|
25
|
+
readonly versions: ["Java 8", "Java 11", "Java 17", "Java 21"];
|
|
26
|
+
readonly toolchains: ["OpenJDK 11"];
|
|
27
|
+
readonly extension: "java";
|
|
28
|
+
readonly editor: "java";
|
|
29
|
+
};
|
|
30
|
+
readonly ruby: {
|
|
31
|
+
readonly name: "Ruby";
|
|
32
|
+
readonly versions: ["Ruby 3.2"];
|
|
33
|
+
readonly toolchains: ["Ruby 3.2.2"];
|
|
34
|
+
readonly extension: "rb";
|
|
35
|
+
readonly editor: "ruby";
|
|
36
|
+
};
|
|
37
|
+
readonly go: {
|
|
38
|
+
readonly name: "Go";
|
|
39
|
+
readonly versions: ["Go 1.17"];
|
|
40
|
+
readonly toolchains: ["Golang 1.17.7"];
|
|
41
|
+
readonly extension: "go";
|
|
42
|
+
readonly editor: "go";
|
|
43
|
+
};
|
|
44
|
+
readonly r: {
|
|
45
|
+
readonly name: "R";
|
|
46
|
+
readonly versions: ["R 3.6"];
|
|
47
|
+
readonly toolchains: ["R 3.6.3"];
|
|
48
|
+
readonly extension: "r";
|
|
49
|
+
readonly editor: "r";
|
|
50
|
+
};
|
|
51
|
+
readonly javascript: {
|
|
52
|
+
readonly name: "JavaScript";
|
|
53
|
+
readonly versions: ["ES5", "ES6", "ES2025"];
|
|
54
|
+
readonly toolchains: ["Node 26.8.1"];
|
|
55
|
+
readonly extension: "js";
|
|
56
|
+
readonly editor: "javascript";
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
export type Language = keyof typeof languages;
|
|
60
|
+
export declare const languageTypes: Language[];
|
|
61
|
+
type EnvironmentFor<L extends Language> = {
|
|
62
|
+
language: L;
|
|
63
|
+
version: (typeof languages)[L]['versions'][number];
|
|
64
|
+
toolchain: (typeof languages)[L]['toolchains'][number];
|
|
65
|
+
name: string;
|
|
66
|
+
isSubmittable: boolean;
|
|
67
|
+
docker: {
|
|
68
|
+
image: string;
|
|
69
|
+
fileName: string;
|
|
70
|
+
compile: string | null;
|
|
71
|
+
test: string;
|
|
72
|
+
option?: {
|
|
73
|
+
deleteDot?: boolean;
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
export type EnvironmentEntity = {
|
|
78
|
+
[L in Language]: EnvironmentFor<L>;
|
|
79
|
+
}[Language];
|
|
80
|
+
export declare const environments: {
|
|
81
|
+
readonly c: {
|
|
82
|
+
readonly language: "c";
|
|
83
|
+
readonly version: "C11";
|
|
84
|
+
readonly toolchain: "GCC 11.2.0";
|
|
85
|
+
readonly name: "C11 (GCC) (deprecated)";
|
|
86
|
+
readonly isSubmittable: false;
|
|
87
|
+
readonly docker: {
|
|
88
|
+
readonly image: "gcc:11.2.0";
|
|
89
|
+
readonly fileName: "source.c";
|
|
90
|
+
readonly compile: "gcc /root/source.c -o test";
|
|
91
|
+
readonly test: "./test";
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
readonly c11: {
|
|
95
|
+
readonly language: "c";
|
|
96
|
+
readonly version: "C11";
|
|
97
|
+
readonly toolchain: "GCC 11.2.0";
|
|
98
|
+
readonly name: "C11 (GCC)";
|
|
99
|
+
readonly isSubmittable: true;
|
|
100
|
+
readonly docker: {
|
|
101
|
+
readonly image: "gcc:11.2.0";
|
|
102
|
+
readonly fileName: "source.c";
|
|
103
|
+
readonly compile: "gcc /root/source.c -o test -std=c11";
|
|
104
|
+
readonly test: "./test";
|
|
105
|
+
};
|
|
106
|
+
};
|
|
107
|
+
readonly 'c++': {
|
|
108
|
+
readonly language: "cpp";
|
|
109
|
+
readonly version: "C++11";
|
|
110
|
+
readonly toolchain: "GCC 11.2.0";
|
|
111
|
+
readonly name: "C++11 (GCC) (deprecated)";
|
|
112
|
+
readonly isSubmittable: false;
|
|
113
|
+
readonly docker: {
|
|
114
|
+
readonly image: "gcc:11.2.0";
|
|
115
|
+
readonly fileName: "source.cpp";
|
|
116
|
+
readonly compile: "g++ /root/source.cpp -o test -std=c++11";
|
|
117
|
+
readonly test: "./test";
|
|
118
|
+
};
|
|
119
|
+
};
|
|
120
|
+
readonly 'c++11': {
|
|
121
|
+
readonly language: "cpp";
|
|
122
|
+
readonly version: "C++11";
|
|
123
|
+
readonly toolchain: "GCC 11.2.0";
|
|
124
|
+
readonly name: "C++11 (GCC)";
|
|
125
|
+
readonly isSubmittable: true;
|
|
126
|
+
readonly docker: {
|
|
127
|
+
readonly image: "gcc:11.2.0";
|
|
128
|
+
readonly fileName: "source.cpp";
|
|
129
|
+
readonly compile: "g++ /root/source.cpp -o test -std=c++11";
|
|
130
|
+
readonly test: "./test";
|
|
131
|
+
};
|
|
132
|
+
};
|
|
133
|
+
readonly 'c++14': {
|
|
134
|
+
readonly language: "cpp";
|
|
135
|
+
readonly version: "C++14";
|
|
136
|
+
readonly toolchain: "GCC 11.2.0";
|
|
137
|
+
readonly name: "C++14 (GCC)";
|
|
138
|
+
readonly isSubmittable: true;
|
|
139
|
+
readonly docker: {
|
|
140
|
+
readonly image: "gcc:11.2.0";
|
|
141
|
+
readonly fileName: "source.cpp";
|
|
142
|
+
readonly compile: "g++ /root/source.cpp -o test -std=c++14";
|
|
143
|
+
readonly test: "./test";
|
|
144
|
+
};
|
|
145
|
+
};
|
|
146
|
+
readonly 'c++17': {
|
|
147
|
+
readonly language: "cpp";
|
|
148
|
+
readonly version: "C++17";
|
|
149
|
+
readonly toolchain: "GCC 11.2.0";
|
|
150
|
+
readonly name: "C++17 (GCC)";
|
|
151
|
+
readonly isSubmittable: true;
|
|
152
|
+
readonly docker: {
|
|
153
|
+
readonly image: "gcc:11.2.0";
|
|
154
|
+
readonly fileName: "source.cpp";
|
|
155
|
+
readonly compile: "g++ /root/source.cpp -o test -std=c++17";
|
|
156
|
+
readonly test: "./test";
|
|
157
|
+
};
|
|
158
|
+
};
|
|
159
|
+
readonly python2: {
|
|
160
|
+
readonly language: "python";
|
|
161
|
+
readonly version: "Python 2.7";
|
|
162
|
+
readonly toolchain: "Python 2.7.18";
|
|
163
|
+
readonly name: "Python 2.7";
|
|
164
|
+
readonly isSubmittable: true;
|
|
165
|
+
readonly docker: {
|
|
166
|
+
readonly image: "python:2.7";
|
|
167
|
+
readonly fileName: "source.py";
|
|
168
|
+
readonly compile: null;
|
|
169
|
+
readonly test: "python2 /root/source.py";
|
|
170
|
+
};
|
|
171
|
+
};
|
|
172
|
+
readonly python3: {
|
|
173
|
+
readonly language: "python";
|
|
174
|
+
readonly version: "Python 3.11";
|
|
175
|
+
readonly toolchain: "Python 3.11.4";
|
|
176
|
+
readonly name: "Python 3.11";
|
|
177
|
+
readonly isSubmittable: true;
|
|
178
|
+
readonly docker: {
|
|
179
|
+
readonly image: "python:3.11.4";
|
|
180
|
+
readonly fileName: "source.py";
|
|
181
|
+
readonly compile: null;
|
|
182
|
+
readonly test: "python3 /root/source.py";
|
|
183
|
+
};
|
|
184
|
+
};
|
|
185
|
+
readonly pypy3: {
|
|
186
|
+
readonly language: "python";
|
|
187
|
+
readonly version: "Python 3.10";
|
|
188
|
+
readonly toolchain: "PyPy 7.3.12";
|
|
189
|
+
readonly name: "Python 3.10 (PyPy)";
|
|
190
|
+
readonly isSubmittable: true;
|
|
191
|
+
readonly docker: {
|
|
192
|
+
readonly image: "pypy:3.10-7.3.12";
|
|
193
|
+
readonly fileName: "source.py";
|
|
194
|
+
readonly compile: null;
|
|
195
|
+
readonly test: "pypy3 /root/source.py";
|
|
196
|
+
};
|
|
197
|
+
};
|
|
198
|
+
readonly openjdk: {
|
|
199
|
+
readonly language: "java";
|
|
200
|
+
readonly version: "Java 11";
|
|
201
|
+
readonly toolchain: "OpenJDK 11";
|
|
202
|
+
readonly name: "Java 11 (OpenJDK)";
|
|
203
|
+
readonly isSubmittable: true;
|
|
204
|
+
readonly docker: {
|
|
205
|
+
readonly image: "openjdk:11";
|
|
206
|
+
readonly fileName: "Main.java";
|
|
207
|
+
readonly compile: "javac /root/Main.java";
|
|
208
|
+
readonly test: "java -Xms256m -Xmx256m -Xss256m -cp /root Main";
|
|
209
|
+
};
|
|
210
|
+
};
|
|
211
|
+
readonly ruby: {
|
|
212
|
+
readonly language: "ruby";
|
|
213
|
+
readonly version: "Ruby 3.2";
|
|
214
|
+
readonly toolchain: "Ruby 3.2.2";
|
|
215
|
+
readonly name: "Ruby 3.2";
|
|
216
|
+
readonly isSubmittable: true;
|
|
217
|
+
readonly docker: {
|
|
218
|
+
readonly image: "ruby:3.2.2";
|
|
219
|
+
readonly fileName: "source.rb";
|
|
220
|
+
readonly compile: null;
|
|
221
|
+
readonly test: "ruby /root/source.rb";
|
|
222
|
+
};
|
|
223
|
+
};
|
|
224
|
+
readonly golang: {
|
|
225
|
+
readonly language: "go";
|
|
226
|
+
readonly version: "Go 1.17";
|
|
227
|
+
readonly toolchain: "Golang 1.17.7";
|
|
228
|
+
readonly name: "Go 1.17";
|
|
229
|
+
readonly isSubmittable: true;
|
|
230
|
+
readonly docker: {
|
|
231
|
+
readonly image: "golang:1.17.7";
|
|
232
|
+
readonly fileName: "source.go";
|
|
233
|
+
readonly option: {
|
|
234
|
+
readonly deleteDot: true;
|
|
235
|
+
};
|
|
236
|
+
readonly compile: "go build /root/source.go";
|
|
237
|
+
readonly test: "./source";
|
|
238
|
+
};
|
|
239
|
+
};
|
|
240
|
+
readonly r: {
|
|
241
|
+
readonly language: "r";
|
|
242
|
+
readonly version: "R 3.6";
|
|
243
|
+
readonly toolchain: "R 3.6.3";
|
|
244
|
+
readonly name: "R 3.6";
|
|
245
|
+
readonly isSubmittable: true;
|
|
246
|
+
readonly docker: {
|
|
247
|
+
readonly image: "r-base:3.6.3";
|
|
248
|
+
readonly fileName: "source.R";
|
|
249
|
+
readonly compile: null;
|
|
250
|
+
readonly test: "Rscript /root/source.R";
|
|
251
|
+
};
|
|
252
|
+
};
|
|
253
|
+
};
|
|
254
|
+
export type Environment = keyof typeof environments;
|
|
255
|
+
export declare const environmentTypes: Environment[];
|
|
256
|
+
export {};
|