数列
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.
Description
有一种数列,前K个是1,后面每一项都它前面的K项之和。求第N项。
Input Format
第一行一个整数 N和K。
Output Format
一行:对应的结果。
Sample
样例数据
input
6 2
output
8
Hint
保证。
时间限制:
空间限制:
20200822高精度练习
- Status
- Done
- Rule
- ACM/ICPC
- Problem
- 6
- Start at
- 2020-8-22 8:26
- End at
- 2020-8-25 8:26
- Duration
- 72 hour(s)
- Host
- Partic.
- 22