This website requires JavaScript.
Explore
Help
Register
Sign In
Luthics
/
XJTU_Python
Watch
1
Star
0
Fork
You've already forked XJTU_Python
0
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
Activity
039d05bdc0
XJTU_Python
/
test
/
3
/
3.py
5 lines
109 B
Python
Raw
Blame
History
n
=
int
(
input
(
)
)
a
=
[
0
,
1
]
for
i
in
range
(
2
,
n
+
1
)
:
a
.
append
(
a
[
i
-
1
]
+
a
[
i
-
2
]
)
# 递推
print
(
a
[
n
]
)
Reference in New Issue
View Git Blame
Copy Permalink