Type: Default 1000ms 256MiB

数列

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

保证1N1000,1K101 \leq N \leq 1000,1 \leq K \leq 10

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

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

20200822高精度练习

Not Attended
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