不容易系列之(3)—— LELE的RPG难题 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 26703 Accepted Submission(s): 10648 Problem Description 人称
#include<iostream> using namespace std; _int64 a[52]={0,3,6,6}; int main() { int n,i; for(i=4;i<52;i++) a[i]=a[i-1]+a[i-2]*2; while(cin>>n) cout<<a[n]<<endl;