#C. 例题3.3.4 煎饼分割问题

    Type: Default File IO: flat 1000ms 512MiB

例题3.3.4 煎饼分割问题

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.

题目描述

王小二自夸刀工不错,有人放一张大的煎饼在砧板上,问他:“饼不许离开砧板,切n刀最多能分成多少块?”

输入格式

给定一个整数n

输出格式

输出相应答案

样例数据

input


5

output


16

数据规模与约定

2n10002 \le n \le 1000

时间限制:1s1 \text {s}

空间限制:256MB256 \text {MB}

20201006-pm 基础代码测试

Not Attended
Status
Done
Rule
OI
Problem
4
Start at
2020-10-6 16:00
End at
2020-10-6 16:09
Duration
0.2 hour(s)
Host
Partic.
16