Welcome   HUNAN NORMAL UNIVERSITY ACM/ICPC Judge Online
Home
FAQs
Problem Set
Practices
Online Contests
Major Exercises
OI Special
Judgement
Submit
Online Status
User Ranklist
Users
Register new
Login
Web Links
Hunan Normal University
College of Information Science and Engineering
按逆序显示
Time Limit: 1000ms, Special Time Limit:2500ms, Memory Limit:32768KB
Total submit users: 414, Accepted users: 388
Problem 10468 : No special judgement
Problem description
  有一个数列,它的第一项为0,第二项为1,以后每一项都是它的前两项之和,试产生出此数列的前n项,并按逆序输出。

Input
  多行数据,每行一个整数n(n<=40),表示数列前n项。

Output
  按逆序输出此数列前n项,数据间用一个空格分隔,最后一个数据后面无空格。

Sample Input
5
Sample Output
3 2 1 1 0
Submit   Clarifications   Judge Status  Problems  Ranklist 

HUNAN NORMAL UNIVERSITY ACM/ICPC Judge Online, Version 2010.5.5.final.
Web visits:2181 today,16258908 total, since 2010-05-07