Skip to main content

A Local Judge for OIers and ACMers by _rqy

Project description

一个便捷的本地评测器。By _rqy.

屏幕截图

1 安装

可以通过 pip3 安装。

$ pip3 install --upgrade rlj

或者通过 git

$ git clone git@github.com:rqy1458814497/RLJ.git
$ cd RLJ
$ sudo python3 setup.py install

2 使用

2.1 Config文件

创建 config.json 文件,该文件应包含以下几项:

Source (可选), InputOutput#Time LimitMemory Limit

例如:

{
  "Source"       : "example.cpp",
  "Input"        : "example#.in",
  "Output"       : "example#.ans",
  "#"            : [1, 2, 3, 4, 5, 6, 7, 8, 9, 10],
  "Time Limit"   : 1000,
  "Memory Limit" : 128
}

更简单的方法是输入

$ rlj --genConfig [FILE]

生成 config.json (或指定FILE参数以更改文件名)。

2.2 数据

请将所需的输入输出数据文件置于 data 文件夹下。

如,上面的测试文件的例子中, data 下应有: example1.in, example1.ans, example2.in 等文件。

2.3 评测

$ rlj [-s|--slient] [-j Source | --judge Source] [-c ConfigFile] [--O2]

只调用 rlj 即可评测。

若要简化其输出,请调用 rlj --silentrlj -s

具体用法请参照 rlj -h

2.4 编译选项

默认无任何编译选项。

可通过在 config.json 中加入 Compiling Parameter 添加编译选项。

--O2 可以在运行时制定,参照上文。

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rlj-1.0.4.tar.gz (5.5 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page