跳转至

Lemon

Lemon

Warning

macOS 下 Lemon 可能會出現內存測試不準確的情況,因為 macOS 缺少部分 Linux 的監測工具,且 Lemon-Linux 也沒有針對 macOS 進行優化。

Lemon 是 zhipeng-jia 編寫的開源評測工具,源代碼託管於 zhipeng-jia/project-lemon

可直接運行的版本

  • Ir1d 提供了一份 Linux 下編譯好的版本,源代碼託管於 FreestyleOJ/Project_lemon
  • (已停止維護)Menci 提供了一份更新的版本,源代碼託管於 Menci/Lemon
  • (已停止維護)Dust1404 維護了一份支持子文件夾和單題測試等功能的版本,源代碼託管於 Dust1404/Project_LemonPlus
  • iotang 和 Coelacanthus 維護了一份支持子文件夾和單題測試等功能的版本,源代碼託管於 Project-LemonLime/Project_LemonLime

自行編譯

Ubuntu:

1
2
3
4
5
6
7
sudo apt update
sudo apt install qt5-default build-essential git -y
git clone --depth=1 https://github.com/Menci/Lemon.git
cd lemon
# 可以修改 -j 後面的數字來調整 make job 的線程數
./make -j2
sudo install -Dm755 -t /usr/bin/ Lemon

如要編譯 LemonLime,請參閲 LemonLime 的 編譯手冊

數據格式

首先打開 lemon 選擇「新建試題」,然後打開新建試題的文件夾。

題目和數據應該如以下格式所示:

1
2
3
4
5
6
7
8
9
├── data
│   ├── gendata.py
│   ├── product
│   │   ├── product100.in
│   │   ├── product100.out
│   │   ├── product10.in
│   │   ├── product10.out
│   │   ├── product11.in
...

當所有試題添加完成後,回到 lemon 選擇「自動添加試題」。此時題目和數據點將顯示在 lemon 當中。