C. 求斐波那契数列

    Type: Default 1000ms 128MiB

求斐波那契数列

You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.

Description

给出一个数 nn ,请求出斐波那契数列的第 nn 项。

Format

Input

一行,一个整数 nn

Output

一个整数,表示第 nn 项斐波那契数。

Samples

5
5

Hints

1,1,2,3,5,8...
其中,第五项为5

Limitation

1n421 \le n \le 42

2025/07/18新生课前测

Not Attended
Status
Done
Rule
Ledo
Problem
5
Start at
2025-7-18 7:45
End at
2025-7-18 8:45
Duration
1 hour(s)
Host
Partic.
24