Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
rqy1458814497
committed
Dec 12, 2017
1 parent
96db986
commit dadc97a
Showing
2 changed files
with
111 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
# RLJ | ||
|
||
一个便捷的本地评测器。By \_rqy. | ||
|
||
![屏幕截图](https://raw.githubusercontent.com/rqy1458814497/RLJ/master/screenshoots/1.gif) | ||
|
||
[TOC] | ||
|
||
|
||
## 1.安装 | ||
|
||
可以通过 ``pip3`` 安装。 | ||
|
||
```bash | ||
$ pip3 install --upgrade rlj | ||
``` | ||
|
||
或者通过 ``git`` | ||
|
||
```bash | ||
$ git clone git@github.com:rqy1458814497/RLJ.git | ||
$ cd RLJ | ||
$ sudo python3 setup.py install | ||
``` | ||
|
||
|
||
## 2.使用 | ||
|
||
### 2.1.Config文件 | ||
|
||
创建 ``config.json`` 文件,该文件应包含以下几项: | ||
|
||
``Source`` (可选), ``Input`` , ``Output`` , ``#`` , ``Time Limit`` , ``Memory Limit`` | ||
|
||
例如: | ||
|
||
```json | ||
{ | ||
"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 | ||
} | ||
``` | ||
|
||
更简单的方法是输入 | ||
|
||
```bash | ||
$ rlj --genConfig [FILE] | ||
``` | ||
|
||
生成 ``config.json`` (或指定FILE参数以更改文件名)。 | ||
|
||
### 2.2.数据 | ||
|
||
请将所需的输入输出数据文件置于 ``data`` 文件夹下。 | ||
|
||
如,上面的测试文件的例子中, ``data`` 下应有: ``example1.in``, ``example1.ans``, ``example2.in`` 等文件。 | ||
|
||
|
||
### 2.3.评测 | ||
|
||
```bash | ||
$ rlj [-s|--slient] [-j Source | --judge Source] [-c ConfigFile] [--O2] | ||
``` | ||
|
||
只调用 ``rlj`` 即可评测。 | ||
|
||
若要简化其输出,请调用 ``rlj --silent`` 或 ``rlj -s`` | ||
|
||
具体用法请参照 ``rlj -h`` | ||
|
||
### 2.4.编译选项 | ||
|
||
默认无任何编译选项。 | ||
|
||
可通过在 ``config.json`` 中加入 ``Compiling Parameter`` 添加编译选项。 | ||
|
||
``--O2`` 可以在运行时制定,参照上文。 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters