标签:不同 sub content 效果 mis 多个 put 表示 bottom
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 37879 Accepted Submission(s): 17886
#include <stdio.h> #include <algorithm> #include <iostream> #include <string.h> #include <queue> using namespace std; typedef long long ll; ll f[55]; ll uf[55]; int main() { f[1]=1; uf[1]=2; for(int i=2;i<=40;i++) { f[i]=uf[i-1]; uf[i]=(f[i-1]+uf[i-1])*2; } int n; while(cin>>n) { cout<<f[n]+uf[n]<<endl; } return 0; }
标签:不同 sub content 效果 mis 多个 put 表示 bottom
原文地址:http://www.cnblogs.com/a249189046/p/7617306.html