Nothing checks that a judge case's expected value is correct

オープン
#851 コメント 3 件 リアクション 0 件 担当者 1 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@ColtenOuO がすでに取り組んでいます。

2026年11月25日 から。

評価

この issue はまだ評価されていません。

説明

enhancement

scripts/problem_bank/rules.py and gen-problems.py --check validate the shape of problem-bank/judges.json: labels, case count, boundary cases, types. The golden hash in tests/golden/task-posed.json only notices that a judge changed, and a PR that edits a judge updates it too. No step runs a correct solution against the cases, so a wrong expected passes CI and fails a correct candidate in an interview.

About ten of the 151 judges (827 cases) have a browser test that runs a correct solution over every case, as #761 does for word-pattern. The rest depend on a reviewer working each case out by hand, which gets hard when one PR adds a dozen edge cases.

Proposal:

  1. Allow a Python reference solution per judge under problem-bank/. gen-problems.py --check runs it on every case through the judge's own checker (17 judges use one other than exact) and fails on a mismatch.
  2. Fill in the remaining judges in small batches.
主要言語
Rust
スター
236
フォーク
153
平均マージ
1日 9時間
マージ済み PR(30日)
187

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

sysprog21/codetrial のほかの issue

sysprog21/codetrial の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。