超时了(python)
查看原帖
超时了(python)
1012051
cailiao1234楼主2023/5/25 23:02
a,b,c,d,e = map(int, input().split(' '))
sum_all = a+b+c+d+e
a=a//3
b+=a
e+=a
b=b//3
c+=b
a+=b
c=c//3
b+=c
d+=c
d=d//3
c+=d
e+=d
e=e//3
d+=e
a+=e
print(a,b,c,d,e)
print(sum_all-(a+b+c+d+e))
2023/5/25 23:02
加载中...