测试评估
| 指标 | 结果 |
|---|---|
| Base 测试 | PASS |
| Plus 测试 | PASS |
| 代码长度 | 697 字符 |
模型生成的代码 (697 字符)
def multiple_to_single(nums):
"""
Join a list of multiple integers into a single integer by concatenating
their decimal representations.
Args:
nums (list of int): A list of non-negative integers.
Returns:
int: The concatenated integer.
Examples:
>>> multiple_to_single([11, 33, 50])
113350
>>> multiple_to_single([0, 1, 2])
12
>>> multiple_to_single([100, 200])
100200
"""
# Convert each integer to its string representation and join them
concatenated = ''.join(str(num) for num in nums)
# Convert the concatenated string back to an integer
return int(concatenated)
Base 失败测试用例
- 无失败测试
Plus 失败测试用例
- 无失败测试