#25596: WA line7


dumpdumpgiant@gmail.com (然.)

學校 : 不指定學校
編號 : 153178
來源 : [220.133.157.253]
最後登入時間 :
2021-06-05 14:35:36
a215. 明明愛數數 | From: [220.133.157.253] | 發表日期 : 2021-06-05 14:40

while True:
try:
n, m = input().split()
except:
break
else:
n, m = int(n), int(m)
total = 0
answer = 0
while total <= m:
total += n
n += 1
answer += 1
# print(answer, total)
print(answer)
 
ZeroJudge Forum