Skip to content

[algorithmic] Clarify and rescore Number Loop construction#138

Merged
joyemang33 merged 1 commit into
mainfrom
codex/number-loop-scoring
Jun 5, 2026
Merged

[algorithmic] Clarify and rescore Number Loop construction#138
joyemang33 merged 1 commit into
mainfrom
codex/number-loop-scoring

Conversation

@joyemang33
Copy link
Copy Markdown
Contributor

Summary

Clarifies algorithmic problem 145 as a self-contained Number Loop construction task and updates the checker to provide continuous partial credit.

The revised scoring first buckets by the number of valid loop solutions, then uses the number of 1 clues as the within-bucket optimization objective. The checker now emits Ratio: and RatioUnbounded: fields so the algorithmic judge correctly parses partial scores.

Please read CONTRIBUTING.md before submitting.

Type of Change

  • New research problem
  • New algorithmic problem
  • New Frontier-CS 2.0 problem
  • Bug fix
  • Documentation update
  • Other:

Testing

  • Compiled algorithmic/problems/145/checker.cpp locally with g++ -std=gnu++17 -O2 -I algorithmic/judge/include.
  • Ran the checker against both bundled official answers.
  • Confirmed both cases report Ratio: 0.5892857143 RatioUnbounded: 0.5892857143 under the new unique-solution plus 1-count scoring.
  • Ran a regenerated Harbor trial for problem 145 and confirmed iterative submissions now surface parsed partial scores.

Checklist

  • Code follows the project structure and conventions
  • Self-review completed
  • Documentation updated (if applicable)

CI Validation (for new problems)

When adding new problems, CI will automatically validate that your reference solution achieves score > 0.

  • Algorithmic problems: Include reference.cpp in your problem directory
  • Research problems: Include reference.py (or reference.cpp if language: cpp in config.yaml)
  • 2.0 problems: Include reference.py unless the problem config declares another language

@joyemang33 joyemang33 marked this pull request as ready for review June 5, 2026 16:41
@joyemang33 joyemang33 merged commit ac4765d into main Jun 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant