http://acm.hdu.edu.cn/showproblem.php?pid=2013 #include<iostream> #include<stdio.h> #include<math.h> using namespace std; int main() { int n; while(cin>>n) { int sum=,x; for(int i=;i<n;i++) { x=*sum+; sum=x; } printf("%d\n",x); } return ; }