Run ID Author Problem Lang Verdict Time Memory Code Length Submit Time
2320 阿** 国王的金币 Python3 Accepted 37 MS 3404 KB 182 2023-12-08 11:48:55

Tests(5/5):


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: s+=(i**2-int(n*(1+n)/2-m)*i) print(s)


Judgement Protocol: