提交时间:2023-12-08 11:45:29

运行 ID: 2318

m=int(input()) s=0 n=0 while int(n*(1+n)/2)<m: n+=1 for i in range(1,n+1): if i!=n: s=s+i**2 else: print(s)