#29573: 我的答案為:0,正確答案為:202


Super487 (Super487)

學校 : 國立交通大學
編號 : 182269
來源 : [140.113.92.29]
最後登入時間 :
2023-12-26 20:22:51

while True:

try:

a, b = [int(i) for i in input().split()]

times = 0

sumN = 0

while sumN < b:

sumN += a

times += 1

a += 1

print(times)

except:

break

 

#29575: Re:我的答案為:0,正確答案為:202


cges30901 (cges30901)

學校 : 不指定學校
編號 : 30877
來源 : [39.12.66.21]
最後登入時間 :
2025-04-20 17:19:22


sumN = 0

while sumN < b:

 


b可能小於0,這種情況while迴圈就會完全沒有執行到