Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
fibo dp
STANAANDREY
Dec 21st, 2020
(
edited
)
321
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
**Blynk Control** rev_05
Arduino | 4 min ago | 1.88 KB
Hyperlink
HTML | 39 min ago | 1.35 KB
dataNone
JSON | 49 min ago | 0.64 KB
⭐GET ANY GIFT-CÂRD FOR FREE⭐ FF
JavaScript | 57 min ago | 0.06 KB
B. Часть 1. Паддингтон
Python | 1 hour ago | 0.12 KB
⭐ FREE giftcards method
JavaScript | 1 hour ago | 0.05 KB
⭐ FREE giftcards method
JavaScript | 1 hour ago | 0.05 KB
A. Ну что там с деньгами?_2
Python | 1 hour ago | 2.51 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!