Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
mynameishandsome
Jun 18th, 2021
(
edited
)
647
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
Python
0.20 KB
| None
|
0
0
raw
download
clone
embed
print
report
def
loco
(
l
,
k
)
:
if
len
(
l
)
<=
k-
1
:
return
0
kaka
=
l
[
0
]
+loco
(
l
[
1
:
]
,
k
)
for
i
in
range
(
1
,
k
)
:
kaka
=
min
(
kaka
,
l
[
i
]
+ loco
(
l
[
i+
1
:
]
,
k
)
)
return
kaka
print
(
loco
(
[
20
,
30
,
40
,
25
,
15
,
20
,
28
]
,
3
)
)
Add Comment
Please,
Sign In
to add comment
Public Pastes
🤑 G2A.com Free Gift Card Guide May 2024 FIX 💰
GetText | 19 min ago | 0.38 KB
Untitled
PHP | 19 min ago | 15.24 KB
🤑 G2A.com Free Gift Card Guide May 2024 FIX 🤑
GetText | 20 min ago | 0.39 KB
pointer.c
C | 2 hours ago | 0.92 KB
TreeManager.cs
C# | 2 hours ago | 2.33 KB
TreeDrawer.cs
C# | 2 hours ago | 5.62 KB
Полная Замена всех Авто в POLICE LosSantos
C# | 2 hours ago | 6.30 KB
MainWindow.xaml
C# | 2 hours ago | 26.74 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!