Skip to content

评测插件说明

Zisu Zhang edited this page Aug 26, 2023 · 1 revision

Azukiiro使用评测插件进行评测。目前支持下面的评测格式:

UOJ

插件ID: uoj

插件配置:

type UOJAdapterConfig struct {
	SandboxMode string `json:"sandbox_mode"`
}

样例配置文件:

{
  "$schema": "https://aoi.zisu.dev/schemas/problem-config.json",
  "label": "uoj-compat",
  "submit": {
    "form": {
      "files": [
        {
          "path": ".metadata.json",
          "label": "Metadata",
          "type": {
            "metadata": {
              "items": [
                {
                  "key": "language",
                  "label": "Language",
                  "type": {
                    "select": {
                      "options": ["C++", "C++11"]
                    }
                  }
                }
              ]
            }
          }
        },
        {
          "path": "answer.code",
          "type": {
            "editor": {
              "language": "cpp"
            }
          },
          "label": "Source Code"
        }
      ]
    }
  },
  "judge": {
    "adapter": "uoj",
    "config": {}
  }
}
Clone this wiki locally