e-olymp
favorite We need a little bit of your help to keep things running, click on this banner to learn more
Competitions

Week 8: December 28 - January 10. Functions. Part 1

Recursion - 1

Implement the recursive function:

prb8609.gif

Input

One integer n (0n1000).

Output

Print the value of f(n).

Time limit 1 second
Memory limit 128 MiB
Input example #1
5
Output example #1
15