大佬求助!!2,3,5,7,9,10爆雷
查看原帖
大佬求助!!2,3,5,7,9,10爆雷
1655720
explores楼主2025/2/3 16:08
s=300
budget=0
mum=0
x=0
shortmonth=0
for month in range(1,13):
    x+=s
    budget=int(input())
    if x<budget:
        shortmonth=month
        break
    x-=budget
    mum+=(x//100)*100
    x=x%100
if shortmonth:
    print(-shortmonth)
else:
    total=x+(mum*1.2)
    print(total)

2025/2/3 16:08
加载中...