阅读背景:

3.20 PAT1070 乙级 python(通过了但是题目我有点没理解懂)_棉毛裤穿吗

来源:互联网 

结绳

n = int(input())
lst = [int(i) for i in input().split()]
lst.sort()
a = lst[0]/2+lst[1]/2
for i in lst[2:]:
	a = a/2+i/2
print(int(a))n = int(input())
lst = [int(i) for i in in



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: