#34205: Python 解法


ck1090932@gl.ck.tp.edu.tw (陳邦仁)

學校 : 臺北市立建國高級中學
編號 : 131859
來源 : [140.112.24.194]
最後登入時間 :
2025-10-07 15:41:17

若有更好的大家可以底下留言回應

我有加防錯誤碼,不影響判決

k=int(input())
score=0
if (k<=10 and k>=0):
   score=6*k
   print (str(score))
elif (k>=11 and k<=20):
   score=2*k+40
   print (str(score))
elif (k>=21 and k<=40):
   score=k+60
   print (str(score))
elif (k>40):
   score=100
   print (str(score))
else:
   print ("ERROR")