請教哪裡出錯了,謝謝
while 1:
try:
m = [300] * 13
p = 0 #交給媽媽
s = 0 #津津手中
for j in range(1,13):
s = s + m[j] - int(input())
if s < 0:
print(-j)
break
else:
q = s // 100
r = s % 100
p = p + q * 100
s = r
else:
print(int(s+p*1.2))
except:
break