12149 - Feynman


Difficulty : easy

Solution Description :

Simple math problem

input n
ans = 1^2+2^2+3^2+....+n^2
print ans

You can pre-generate all ans