提交时间:2024-11-29 19:35:19

运行 ID: 302134

n=int(input()) a=1 sum=0 while a <= n: sum+=a a+=1 print(sum)