pastebin
Add a new paste
View all pastes
Change language
Dutch
English
French
Russian
menu
URL Shortener
Multiple URL shortener
browser info
Whois IP and domain lookup
Capture a Website screenshot
Disqus Chatroom
Registration
pastebin
Paste Search Dynamic
Recent pastes
vids
43 minutes ago
jailb
43 minutes ago
person check
6 hours ago
node add
6 hours ago
ZonedDateTime
6 hours ago
nid
6 hours ago
lowestCars highestCars
6 hours ago
Entity id
6 hours ago
binkey
6 hours ago
node access
6 hours ago
fx
f =
[
0
]
*
1000000
f
[
2
]
=
1
f
[
3
]
=
1
f
[
4
]
=
2
n =
int
(
input
(
)
)
for
x
in
range
(
5
,
1000000
)
:
if
x > n:
break
;
f
[
x
]
=
(
f
[
x
-2
]
+ f
[
x
-3
]
+ f
[
x
-4
]
)
%
10000000007
;
print
(
f
[
n
]
)
Parsed in 0.002 seconds