10分求助 有没有懂python的帅哥美女们会解答的 求解
查看原帖
10分求助 有没有懂python的帅哥美女们会解答的 求解
1229717
LeavingAC楼主2023/12/6 22:53
a = int(input())
b = list(map(int,input().split()))
c = 0
b.sort()
for i in range(a-1):
    c += sum(b)
    b.pop()
print(c)
2023/12/6 22:53
加载中...