Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
K-кузнечик
zhukov000
Nov 20th, 2019
136
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
Python
0.18 KB
| None
|
0
0
raw
download
clone
embed
print
report
n
,
k
=
map
(
int
,
input
(
)
.
split
(
)
)
dp
=
[
0
]
*
33
dp
[
1
]
=
1
for
i
in
range
(
2
,
n+
1
)
:
dp
[
i
]
=
0
for
j
in
range
(
1
,
min
(
k
,
i
)
+
1
)
:
dp
[
i
]
+
=
dp
[
i-j
]
print
(
dp
[
n
]
)
Add Comment
Please,
Sign In
to add comment
Public Pastes
[db error] mainwindow.cpp
C++ | 45 min ago | 0.57 KB
[db error] mainwindow.h
C | 47 min ago | 0.46 KB
[db error] CMakeLists.txt
CMake | 50 min ago | 0.70 KB
T123456
SQL | 50 min ago | 0.44 KB
🤑 G2A.com Free Gift Card Guide Apr 2024 FIX 🤑
GetText | 53 min ago | 0.39 KB
C++ Multithreading code on Sort array CHATGPT
C++ | 55 min ago | 0.97 KB
C++ Multithreading Calculate Fibonacci CHATGP...
C++ | 1 hour ago | 0.60 KB
Untitled
JavaScript | 1 hour ago | 2.58 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!