fork download
  1. n=int(input())
  2. sum=0
  3. for i in range(1,n+1):
  4. sum=sum+i*i
  5. print(sum)
Success #stdin #stdout 0.11s 14136KB
stdin
100
stdout
338350