Lemon

Lemon

Warning

On macOS, Lemon may produce inaccurate memory-test results because macOS lacks some monitoring tools available on Linux, and Lemon-Linux has not been optimized for macOS.

Lemon is an open-source judging tool written by zhipeng-jia. Its source code is hosted at zhipeng-jia/project-lemon.

Versions Available for Direct Use

  • Ir1d provides a precompiled version for Linux, whose source code is hosted at FreestyleOJ/Project_lemon.
  • (No longer maintained) Menci provides an updated version, whose source code is hosted at Menci/Lemon.
  • (No longer maintained) Dust1404 maintains a version supporting subfolders and single-problem testing, whose source code is hosted at Dust1404/Project_LemonPlus.
  • iotang and Coelacanthus maintain a version supporting subfolders and single-problem testing, whose source code is hosted at Project-LemonLime/Project_LemonLime.

Compile It Yourself

Ubuntu:

sudo apt update
sudo apt install qt5-default build-essential git -y
git clone --depth=1 https://github.com/Menci/Lemon.git
cd lemon
# You can modify the number after -j to adjust the number of make job threads
./make -j2
sudo install -Dm755 -t /usr/bin/ Lemon

To compile LemonLime, see LemonLime's build manual.

Data Format

First open lemon and select “New Problem”, then open the folder of the newly created problem.

The problem and data should have the following format:

├── data
│   ├── gendata.py
│   ├── product
│   │   ├── product100.in
│   │   ├── product100.out
│   │   ├── product10.in
│   │   ├── product10.out
│   │   ├── product11.in
...

After all problems have been added, return to lemon and select “Automatically Add Problems”. The problems and data points will then be displayed in lemon.

This content comes from OI Wiki: Lemon. See the original for authors and revision history. AIOJ has adapted the formatting, in-site links, and resource paths.

Content is shared under CC BY-SA 4.0 and SATA license; additional terms are governed by the original notice. Thanks to the OI Wiki authors and contributors; per the SATA terms, please visit the OI Wiki repository and star it to show your support.