提交时间:2025-08-28 19:28:11

运行 ID: 345015

n = int(input()) ans = 0 i=n while(True): ans+=i i-=1 if(i==0): break print(ans)