題目 a053: Sagits 計分程式https://zerojudge.tw/ShowProblem?problemid=a053 解答 12345678910111213from sys import stdinfor n in map(int,stdin): x = 0 for i in range(1,n+1): if 0 < i <= 10: x+=6 elif 11 <= i <= 20: x+=2 elif 21 <= i < 40: x+=1 elif 40 <= i: x = 100 print(x)