題目 a215: 明明愛數數https://zerojudge.tw/ShowProblem?problemid=a215 解答 123456789101112while True: try: n,m = map(int,input().split()) sum = n i,j = n,1 while sum <= m: j+=1 sum+=i+1 i+=1 print(j) except: break