2016-01-23 10:17:17 +00:00
|
|
|
|
2016-01-23 11:09:17 +00:00
|
|
|
#Judger [![Build Status](https://travis-ci.org/QingdaoU/Judger.svg?branch=master)](https://travis-ci.org/QingdaoU/Judger)
|
2016-01-23 10:17:17 +00:00
|
|
|
|
2016-01-23 10:56:45 +00:00
|
|
|
|
|
|
|
OnlineJudge 判题沙箱
|
|
|
|
|
2016-01-24 02:33:25 +00:00
|
|
|
##Python api 使用方法
|
|
|
|
|
|
|
|
见 demo
|
2016-01-23 11:09:17 +00:00
|
|
|
|
2016-01-23 10:17:17 +00:00
|
|
|
```
|
|
|
|
sudo python setup.py install
|
2016-01-23 10:56:45 +00:00
|
|
|
cd demo && sudo python demo.py
|
2016-01-23 10:17:17 +00:00
|
|
|
```
|
2016-01-24 02:33:25 +00:00
|
|
|
|
|
|
|
##C语言 api 使用方法
|
|
|
|
|
|
|
|
`#include "runner.c"`即可,然后传入 `config` 和 `result` 的结构体指针。
|
|
|
|
|
|
|
|
##注意
|
|
|
|
- 因为需要切换为 `nobody` 用户运行用户代码,所以需要 `root` 权限启动。
|
2016-01-24 02:46:17 +00:00
|
|
|
- Python api 请不要使用中文 Unicode。
|
|
|
|
|
|
|
|
##感谢
|
|
|
|
- https://github.com/lodevil/Lo-runner
|
|
|
|
- https://github.com/quark-zju/lrun
|
|
|
|
- https://github.com/daveho/EasySandbox
|