中文 | English
一个用于算法竞赛的在线评测系统。
本项目继承自 @louchenyao 的 SYZOJ,目前由 LibreOJ 维护。
见本项目 Wiki 中的 部署指南。
加入 QQ 群 565280992 或 Telegram 群 @lojdev 以取得帮助。
见本项目 Wiki 中的 更新指南。
Distributed judge daemon
License: GNU General Public License v3.0
Looking forward to having Scala
on syzoj
and loj.ac
. Maybe the scripts should be like this:
export const lang = {
name: "scala",
sourceFileName: "Main.scala",
fileExtension: "scala",
binarySizeLimit: 5000 * 1024,
// Note that these two paths are in the sandboxed environment.
compile: (sourcePath, outputDirectory) => ({
// To customize the compilation process,
// write a shell script or some other stuff,
// and put it to your sandbox.
executable: "/usr/bin/compile-script",
parameters: ["compile-script", sourcePath, outputDirectory, "scalac Main.scala"],
time: 5000,
memory: 1024 * 1024 * 1024,
process: 20,
// This is just a redirection. You can simply ignore this
// if you can specify custom location for message output
// in the parameter of the compiler, or have redirected the compilation
// message to somewhere.
// An example will be available soon.
stderr: `${outputDirectory}/message.txt`,
// We will read this file for message in the output directory.
messageFile: 'message.txt',
workingDirectory: outputDirectory
}),
run: (binaryDirectory: string,
workingDirectory: string,
time: number,
memory: number,
stdinFile = null,
stdoutFile = null,
stderrFile = null
) => ({
executable: `/usr/bin/scala`,
parameters: ["scala", `${binaryDirectory}/Main.scala`],
time: time,
memory: memory,
process: 15,
stdin: stdinFile,
stdout: stdoutFile,
stderr: stderrFile,
workingDirectory: workingDirectory
})
};
RT
使用master版本部署,发现即使运行退出代码为1的时候,也会AC。只有部分测试点提示答案错误
web端一次就搭成功了,judge搭了一天都没成功...说明文档又有点少。能否做个docker镜像?或者提供下配置说明
那个demo我看到了,但是按那个配置npm install总是报错。现在正在尝试按照版本一模一样的组件下源码编译,但是这样的配置也太麻烦了点吧......
RT,是不是judge2的sandbox?不过那个judge2的下载链接挂了
求解
还有那个runner-shared-config怎么配置
要是能有详细的部署教程就更好了
如题,请问一下如何升级py3的版本,想从3.5升到3.9
src/runner/judge.ts 的 285 行的
await fse.writeFile(pathLib.join(spjWorkingDir, 'code'), task);
应该把 task
改成后面的 userCode
。
除了 code 内容非预期外,writeFile 里传对象在高版本 Node.js 里会报错。
参考:https://github.com/hydro-dev/HydroJudge
已经在 HydroJudge
的issue里面提过了QAQ…
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.