Run ID:147829

提交时间:2026-02-08 16:00:47

#include<bits/stdc++.h> using namespace std; int main() { long long y[9],x[9],c[9]; y[0]=1;x[0]=0;c[0]=0; for(int i=1;i<=8;i++){ c[i]=c[i-1]+x[i-1]; x[i]=y[i-1]; y[i]=c[i-1]+x[i-1]; }cout<<y[8]<<" "<<x[8]<<" "<<c[8]<<endl; return 0; }