-28. Sum of Squares with Recursion

I'm a slow walker, but I never walk backwards.

題目來源:judgegirl from ntu prof. pangfeng Liu

Task Description

Write a program to compute the sum of squares from to with a recursive function. You should NOT use loops.

Limits

is positive and no more than .

Input Format

There are one line in the input. The first line has .

Output Format

There are one lines in the output. The first line has the sum of squares from 1 to .

Sample Input

5

Sample Output

55

Submit

Login

Testdata Set

Download Testdata