测试评估
| 指标 | 结果 |
|---|---|
| Base 测试 | PASS |
| Plus 测试 | PASS |
| 代码长度 | 374 字符 |
模型生成的代码 (374 字符)
def even_Power_Sum(n: int) -> int:
"""
Returns the sum of the first n even natural numbers raised to the fifth power.
The first n even natural numbers are 2, 4, 6, ..., 2n.
Their fifth powers sum to:
sum_{i=1}^{n} (2*i)^5 = 32 * sum_{i=1}^{n} i^5
"""
total = 0
for i in range(1, n + 1):
total += (2 * i) ** 5
return total
Base 失败测试用例
- 无失败测试
Plus 失败测试用例
- 无失败测试