Skip to content

一个判题沙箱;可根据判题数据,判定用户程序的运行结果以及获取用户程序运行时间和内存消耗、可隔离程序网络。

License

Notifications You must be signed in to change notification settings

Kelab/code-runner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

code-runner

一个运行用户程序的工具。

根据判题数据,判定用户程序的运行结果以及获取用户程序运行时间和内存消耗。

判题结果会以 JSON 格式输出到标准输出中。

{
  "status": 0,
  "cpu_time_used": 2,
  "cpu_time_used_us": 1870,
  "real_time_used": 15,
  "real_time_used_us": 14849,
  "memory_used": 1516,
  "error_code": 0,
  "signal_code": 0,
  "exit_code": 0
}

文档

查看文档:https://code-runner.kelab.dev

致谢

项目中使用到的开源库链接:

参考、使用、改写了以下项目的部分代码:

感谢上述提到的所有仓库以及开发人员。

About

一个判题沙箱;可根据判题数据,判定用户程序的运行结果以及获取用户程序运行时间和内存消耗、可隔离程序网络。

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published