题解 | 班级成绩输入输出
班级成绩输入输出
https://www.nowcoder.com/practice/60d96b08e1cb42e38629d54e37eac008
while True:
try:
l = list(map(float, input().split()))
s = 0
for i in l:
s = s + i
l.append(s)
l = list(map(str,l))
print(' '.join(map(str, l)))
except EOFError:
break