没有参加,刚写了一段供大家参考
s=list(map(int,input().split()))
a=s[:3]
b=s[3:]
big=b if sum(b)>sum(a) else a
small=a if sum(b)>sum(a) else b
x=sum(big)-sum(small)
    
temp=big
temp.sort(reverse=1)
ans=0
if x==0:
    pass
else:
    for i in range(3):
        ans+=1
        if sum(temp[:i])>=x:
            break
print(ans)