递归函数 III
You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.
有一个函数的定义如下

其中 x 为整数。
输入格式
输入一个整数x(−105≤x≤105 )。
输出格式
输出函数 f(x) 值。
输出时每行末尾的多余空格,不影响答案正确性
样例输入1
3
样例输出1
5
样例输入2
10
样例输出2
41
20240124-B
- Status
 - Done
 - Rule
 - ACM/ICPC
 - Problem
 - 4
 - Start at
 - 2024-1-24 17:30
 - End at
 - 2024-1-24 18:30
 - Duration
 - 1 hour(s)
 - Host
 - Partic.
 - 7