Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Apr 4th, 2015
298
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
C++
0.17 KB
| None
|
0
0
raw
download
clone
embed
print
report
void
Expand2
(
int
*
a,
int
*
b,
int
k
)
{
for
(
int
i
=
0
;
i
<
k
;
++
i
)
{
int
sum
=
0
;
for
(
int
l
=
0
;
l
<=
min
(
9
, i
)
;
++
l
)
{
sum
+
=
a
[
i
-
l
]
;
}
b
[
i
]
=
sum
;
}
}
Advertisement
Add Comment
Please,
Sign In
to add comment
Public Pastes
Christmas Gift
22 min ago | 0.84 KB
December smells like money (Release)
CSS | 23 min ago | 0.82 KB
Untitled
2 hours ago | 7.33 KB
Portent: Something major about today, Dec 11....
6 hours ago | 0.66 KB
Portent: Something major about today, Dec 11....
6 hours ago | 0.66 KB
Untitled
6 hours ago | 6.45 KB
Untitled
10 hours ago | 11.91 KB
Untitled
12 hours ago | 12.54 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!