摆平专题

Python | 摆平积木(列表)

包含多组测试数据时就需要使用while True while True:try:n = int(input())if n == 0:breaknums = list(map(int, input().split()))total = sum(nums)average = total // nresult = 0for i in range(n):if nums[i] < average:resu