大佬,求助!!!2,3,5,7,9,10
查看原帖
大佬,求助!!!2,3,5,7,9,10
1655720
explores楼主2025/2/3 16:06

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+(mum1.2) print(total)

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