バグ修正 (1問)
agent-bugfix-v1 · v1 · 言語: ja · サブカテゴリ: bugfix
· 難易度: d2
📋 評価基準
観点: バグの特定 / 最小修正 / 説明の明確さ
📝 プロンプト
以下のPythonコードには バグがあります。バグを特定し、修正してください。
# コード
```python
def average_score(scores):
total = 0
for s in scores:
total += s
avg = total / len(scores)
return avg
result = average_score([])
print(result)
```
# 期待動作
- 空リストでも例外を投げずNoneを返す
- それ以外は平均値を返す
# 出力
修正後のコードと、原因の説明を提示してください。 🏆 モデル別スコア
| # | モデル | 平均 | 最良 | 最低 | サンプル |
|---|---|---|---|---|---|
| 1 | DeepSeek: DeepSeek V4 Flash | 98.0 | 100 | 96 | 2 |
| 2 | Google: Gemma 4 31B (free) | 95.0 | 95 | 95 | 2 |
| 3 | OpenAI: gpt-oss-120b (free) | 95.0 | 95 | 95 | 2 |
| 4 | Owl Alpha | 95.0 | 95 | 95 | 2 |
📜 ラン履歴 (最新30件)
| 実行日時 | モデル | スコア | コスト | 時間 | 判定 |
|---|---|---|---|---|---|
| 2026-06-24 15:14 | DeepSeek: DeepSeek V4 Flash | 100.0 | $0.0001 | 0.0s | |
| 2026-06-24 15:14 | DeepSeek: DeepSeek V4 Flash | 96.0 | $0.0001 | 0.0s | |
| 2026-06-24 12:09 | Google: Gemma 4 31B (free) | 95.0 | $0.0000 | 0.0s | |
| 2026-06-24 12:09 | Google: Gemma 4 31B (free) | 95.0 | $0.0000 | 0.0s | |
| 2026-06-24 10:04 | Owl Alpha | 95.0 | $0.0000 | 0.0s | |
| 2026-06-24 10:04 | Owl Alpha | 95.0 | $0.0000 | 0.0s | |
| 2026-06-24 08:56 | OpenAI: gpt-oss-120b (free) | 95.0 | $0.0000 | 0.0s | |
| 2026-06-24 08:56 | OpenAI: gpt-oss-120b (free) | 95.0 | $0.0000 | 0.0s |