Refuse a judge case above a stated upper bound
Maintainer thường phản hồi trong vòng 1 ngày
@Patriciaath999 đang làm issue này rồi.
Từ ngày 26/11/2026.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- Nửa ngày
- Mức phù hợp với người mới
- 65/100
Hướng nghiên cứu
Start from check_judge_case_bounds, added for #732 in #829, and the LOWER_BOUND matcher it uses. Add the mirror-image check that reads the maximum from the same constraint forms (plain integers, 10^4, 3 * 10^4), skips any other form, and refuses a judge case above it with the same message shape. Done means a case above the stated maximum is refused, and constraints with unparseable maximums are passed through unchanged.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
check_judge_case_bounds (added for #732 in #829) refuses a judge case below the lower bound a constraint states, but not one above its upper bound. The argument is the same: the interviewer gives the bound when asked, and a candidate told "n is between 1 and 8" may size a C buffer as char out[8][17], or a Java boolean[301] for a template of at most 300 letters, and then fail a case past the stated maximum.
In the review of #829, 148 of the 157 constraints LOWER_BOUND matches were counted as ending in a numeric maximum (8, 5000, 3 * 10^4), with no judge case exceeding any of them, so refusing size > highest would refuse nothing in the bank today and keep it that way.
Proposed: read the maximum of the same constraint forms (10^4, 3 * 10^4 and plain integers), refuse a case above it with the same message shape, and skip a maximum written any other way, as the lower bound does.
- Ngôn ngữ chính
- Rust
- Star
- 236
- Fork
- 153
- Merge trung bình
- 1 ngày 9 giờ
- Pull request đã merge (30 ngày)
- 187
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của sysprog21/codetrial
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 70/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Unify Java harness validation error messagesCó thể đã có người làm @weichieh0204 đã nhận hôm nay. Đang mở
sysprog21/codetrial#872 · 1 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Inferred void class operations are never checked against the starter's return typeCó thể đã có người làm @papaya0112 đã nhận hôm nay. Đang mở
sysprog21/codetrial#871 · 1 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Edge Thumbnail Store accepts a store that does not refresh a key on overwriteCó thể đã có người làm @BOBOGUAGUA428 đã nhận hôm nay. Đang mở
sysprog21/codetrial#869 · 1 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của sysprog21/codetrial
Issue tương tự
-
needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
manaflow-ai/cmux#59692 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Retire stale Python-parity labels in Rust ingress and auth testsCó thể đã có người làm @github-actions đã nhận hôm nay. Đang mởfactory factory:building factory:unowned ralph-status:in-progress via:opencode-free/hy4-flash-free
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
JoshCLWren/comic-pile#5874 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
status:ready unit
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
nonagenticai/conveyor#787 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 79/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày