FizzBuzz with edge cases
One task across 30 published runs. Inspect the scores and outputs together, with each run's execution method shown.
- Task
- CODE-0001
- Domain
- Programming
- Difficulty
- easy
Leading published run: claude-opus-4-8 (low reasoning) at 100.0% composite. Lowest: claude-haiku-4-5 at 0.0%. 30 published runs shown on this task.
How this task was evaluated
Results are ordered by this task's published score. API runs use one prompt and one completion; agent runs use a coding harness with tools and iteration. Inspect the execution method when comparing results.
Objective scores use the benchmark's execution checks. Judge scores use a vision panel's fixed rubric; the published score leaves out a model's own family. Missing values are labelled rather than treated as zero.
Read the brief
Implement a Python function `fizzbuzz(n)` that returns a list of strings for the integers 1 through n inclusive. For each integer i: - return "FizzBuzz" if i is divisible by both 3 and 5, - else "Fizz" if divisible by 3, - else "Buzz" if divisible by 5, - otherwise the integer as a string (e.g. "7"). If n < 1, return an empty list. Use only the Python standard library. Write your solution to `solution.py`.