Số fibonacci #5

View as PDF



Problem type
Points: 100 (p) Time limit: 1.0s Memory limit: 256M Input: stdin Output: stdout

Nhập số nguyên dương \(N\). Tính tổng các số fibonacci từ 1 đến \(N\).

Input

  • Nhập số nguyên dương \(N\) (\(1 \leq N \leq 15\)).

Output

  • In ra kết quả bài toán.

Example

Test 1
Input
3
Output
4

Comments

There are no comments at the moment.