if __name__ == '__main__':
inputs = input().split(" ")
res = set()
for i in range(1, len(inputs)):
for j in range(1, len(inputs)):
if j != i:
num = inputs[i] + inputs[j]
res.add(num)
sum = 0
for i in range(len(res)):
sum += int(res.pop())
print(sum)
PAT (Basic Level) Practice (中文)1056 组合数的和
最新推荐文章于 2024-09-03 18:29:17 发布