程式碼在這!
不管縮排的話 只有第7個測資點沒過
想問問題出在哪ಥ_ಥ
while(1):
try:
for a in input().split():
a=int(a)
if 0<=a<=10:
score=6*a
print(score)
elif 11<=a<=20:
score=60+2*(a-10)
print(score)
elif 21<=a<=30:
score=80+(a-20)
print(score)
elif a>=40:
score=100
print(score)
else:
continue
except:
break
程式碼在這!
不管縮排的話 只有第7個測資點沒過
想問問題出在哪ಥ_ಥ
while(1):
try:
for a in input().split():
a=int(a)
if 0<=a<=10:
score=6*a
print(score)
elif 11<=a<=20:
score=60+2*(a-10)
print(score)
elif 21<=a<=30:
score=80+(a-20)
print(score)
elif a>=40:
score=100
print(score)
else:
continue
except:
break
31~39 沒有判斷