测试评估
| 指标 | 结果 |
|---|---|
| Base 测试 | PASS |
| Plus 测试 | PASS |
| 代码长度 | 336 字符 |
模型生成的代码 (336 字符)
def max_sum_list(lists):
"""
Returns the list in a list of lists whose sum of elements is the highest.
If the input list is empty, returns an empty list.
If multiple sublists have the same maximal sum, the first one encountered is returned.
"""
if not lists:
return []
return max(lists, key=sum)
Base 失败测试用例
- 无失败测试
Plus 失败测试用例
- 无失败测试