Do not allow subtasks with 0 testcases
Open
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 1k
- Forks
- 412
- Avg merge
- 6d 10h
- Merged PRs (30d)
- 3
Description
When Group* is used as ScoreType, the parameter string
[[m1, 0], ...]
is accepted. This should not happen: ScoringService fails to score submissions using that configuration (and this makes sense).
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading the ScoringService path that handles Group* as a ScoreType and trace where the parameter string is accepted. Confirm how configurations containing a subtask with 0 testcases are represented, then make validation reject them before scoring can fail. Done means the example configuration is no longer accepted.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100