Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
fibo dp
STANAANDREY
Dec 21st, 2020
(
edited
)
315
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
C++
0.21 KB
| None
|
0
0
raw
download
clone
embed
print
report
#include <iostream>
using
namespace
std
;
int
n, f
[
1003
]
=
{
0
,
1
}
;
int
main
(
)
{
cin
>>
n
;
for
(
int
i
=
2
;
i
<=
n
;
i
++
)
f
[
i
]
=
f
[
i
-
1
]
+
f
[
i
-
2
]
;
cout
<<
f
[
n
]
<<
endl
;
return
0
;
}
Add Comment
Please,
Sign In
to add comment
Public Pastes
⭐ Binance Account hack 9U
JavaScript | 2 sec ago | 0.18 KB
⭐️ EARN $500 INSTANTLY PH
JavaScript | 3 sec ago | 0.18 KB
⭐ Binance Account hack 7F
JavaScript | 4 sec ago | 0.18 KB
⭐ Binance Account hack GG
JavaScript | 6 sec ago | 0.18 KB
⭐ get any gift card for 4S
JavaScript | 12 sec ago | 0.18 KB
⭐ get any gift card for FREE⭐ A4
JavaScript | 14 sec ago | 0.18 KB
⭐️ EARN $500 INSTANTLY⭐ YQ
JavaScript | 18 sec ago | 0.18 KB
⭐ Binance Account hack QO
JavaScript | 19 sec ago | 0.18 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!