#CCBCHBA0000113. Easy Fibonacci
Easy Fibonacci
Easy Fibonacci
Source: beecrowd
Version: Phuoc Hung OJ Extended
Problem Statement
Given , output exactly the first Fibonacci numbers with , and for . Separate numbers with one space, without a trailing space.
Input
One line contains integer .
Output
One line of exactly integers.
Subtasks
-
Subtask 1 (20%): .
-
Subtask 2 (30%): .
-
Subtask 3 (50%): .
Examples
Example 1
Input:
5
Output:
0 1 1 2 3
Explanation:
Start with 0 and 1; each next number is the sum of the previous two. Print exactly 5 values.
Example 2
Input:
1
Output:
0
Explanation:
Start with 0 and 1; each next number is the sum of the previous two. Print exactly 1 values.