Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
fibo dp
STANAANDREY
Dec 21st, 2020
(
edited
)
291
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
Track Time rev_04
Arduino | 2 min ago | 3.77 KB
🤑 G2A.com Free Gift Card Guide May 2024 FIX 🤑
GetText | 3 min ago | 0.39 KB
🤑 G2A.com Free Gift Card Guide May 2024 FIX 🎁
GetText | 4 min ago | 0.38 KB
Track Time rev_03
Arduino | 12 min ago | 3.19 KB
Track Time rev_02
Arduino | 14 min ago | 2.86 KB
date_utility
Python | 16 min ago | 3.34 KB
Button Tracker rev_01
Arduino | 16 min ago | 2.57 KB
control_v
Python | 44 min ago | 1.08 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!