Skip to main content

A Local Judge for OIers and ACMers by _rqy

Project description

A convenient local judge. By _rqy.

Screenshoot

1 Install

You can install it by pip3. Dont forget sudo.

$ sudo pip3 install --upgrade rlj

Or by git

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

2 Usage

2.1 Config File

Make a File named config.yml, It should include:

Source``(optional), ``Input, Output, #, Time Limit, Memory Limit, Compiling Parameter.

For example:

Source: example.cpp
Input Data: example(\d*)\.in
Output Data: example(\d*)\.ans
Time Limit: 1000
Memory Limit: 128

Where Input Data/Output Data uses regular expressions.

Two i/o data will be matched if they match the regular expression with the same contents of each group.

An easier way is run:

$ rlj --genConfig [FILE]

to generate config.yml (and use the argument ‘FILE’ to modify its name).

2.2 Data

Please place all data files under the folder data.

e.g. in the case of the config file above, There should be these files in data: example1.in, example1.ans, example2.in, and so on.

You can also set Data Dir in config.yml to modify the path to datas.

2.3 Judge

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

To judge you only need to run rlj

If you want to see short output, you can run rlj --silent or rlj -s

For more detail you can run rlj -h.

2.4 Compiling Parameter

No parameter is applied when compiling by default.

You can add Compiling Parameter in config.yml.

--O2 is able to be set when running. See above.

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.4.1.tar.gz (9.3 kB view details)

Uploaded Source

File details

Details for the file rlj-1.4.1.tar.gz.

File metadata

  • Download URL: rlj-1.4.1.tar.gz
  • Upload date:
  • Size: 9.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.18.4 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.7

File hashes

Hashes for rlj-1.4.1.tar.gz
Algorithm Hash digest
SHA256 f899d3fe7947842ff199d10e4b36902598a961f7be7eb49b658310167013998d
MD5 0cdb04c40dc2057b29f5867f8239f67c
BLAKE2b-256 8f0c2ed4669bcca800a8c2fb330fd333d489974f3e2d731a580030c5977757b1

See more details on using hashes here.

Supported by

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