在 线 评 测 系 统
Toggle navigation
HNUAHE-OJ
F.A.Qs
ProblemSet
Source/Category
Status
Ranklist
Contest
Login
Problem1204--求函数值
1204: 求函数值
[Creator :
]
Time Limit :
1.000
sec
Memory Limit :
128 MiB
Submit
Solved: 0
Submit Num: 0
Statistics
ShowOff!
Description
按如下递归公式求函数值。
x=1时 f(x)=10;x>1时 f(x)=f(x-1)+2
Input
整型变量x
Output
f(x)
Sample Input
Copy
10
Sample Output
Copy
28
Source/Category
admin