BC46 KiKi算期末成绩
思路:
step1:输入四个成绩,空格隔开;算出分数;格式化输出;
代码如下:
a,b,c,d = list(map(int,input().split()))
score = a*0.2 + b*0.1 + c*0.2 + d*0.5 + 0.00000001
print('{:.1f}'.format(score))
a,b,c,d = list(map(int,input().split()))
score = a*0.2 + b*0.1 + c*0.2 + d*0.5 + 0.00000001
print('{:.1f}'.format(score))