提交时间:2023-10-04 10:21:14
运行 ID: 104855
#include<bits/stdc++.h> using namespace std; int main(){ int n,i,s = 1,a[1000]; cin>>n; a[1] = 3; a[2] = 7; for(i = 3;i <= n + 1;i++){ a[i] = a[i - 1] * a[i - 2]; s = a[i]; } cout<<s<<endl; }