Toggle navigation
CDUTCMOJ
F.A.Qs
ProblemSet
Source/Category
Status
Ranklist
Contest
Login
Language
中文
ئۇيغۇرچە
English
فارسی
ไทย
한국어
Problem1071--求函数值
1071: 求函数值
[Creator :
]
Time Limit :
1
sec
Memory Limit :
128 MB
Solved: 95
Submit: 109
Statistics
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