Toggle navigation
CGOJ
F.A.Qs
ProblemSet
Source/Category
Status
Ranklist
Contest
Login
Language
中文
ئۇيغۇرچە
English
فارسی
ไทย
한국어
Problem4491--切蛋糕
4491: 切蛋糕
[Creator :
]
Time Limit :
1.000
sec
Memory Limit :
128 MiB
Submit
Solved: 6
Submit Num: 9
Statistics
ShowOff!
Description
一个圆型的蛋糕,切
lns="http://www.w3.org/1998/Math/MathML">
n
n
刀后,最多能将蛋糕分成多少块?当
lns="http://www.w3.org/1998/Math/MathML">
n
=
3
n
=
3
时,最多可以分成
lns="http://www.w3.org/1998/Math/MathML">
7
7
块,如下图:
Input
单个整数:表示切割的次数
lns="http://www.w3.org/1998/Math/MathML">
n
n
。
Output
单个整数:表示最多能将蛋糕切成多少份。
Sample Input
Copy
1
Sample Output
Copy
2
Source/Category
顺序结构