这有错吗?python咋写都错
2024-07-04 15:35:57
发布于:浙江
67阅读
0回复
0点赞
import math
n=int(input(''))
s=0
for i in range(n):
m=int(input())
if m <=70:
s+=0.1
else:
if m%70==0:
s+=m//700.1
else:
a=m/70
a=math.ceil(a)
s+=a0.1
s=round(s,1)
print(s)
全部评论 3
为了保证代码的可读性,请尽量使用markdown的代码块语法来包裹你的代码,不然别人没办法复制你的代码来调试。
语法:
```cpp
在此粘贴你的代码
```
效果:
print("Hello World")2024-07-04 来自 浙江
1这个
n = int(input()) list1 = list(map(int,input().split())) c = 0 for i in list1: if i <= 70: c += 0.1 else: s = i//70 c=c+(0.1*(s+1)) c = round(c,1) print(c)1周前 来自 上海
0受着呗
2025-10-11 来自 福建
0















有帮助,赞一个