Run ID:59727
提交时间:2023-11-03 20:14:32
#include <iostream> #include <cstdio> #include <cmath> using namespace std; int main(){ int s=1; int yt=0,ct=0,xt=0,y=1,c=0,x=0; while(s<=8){ yt=c+x; xt=y; ct=c+x; y=yt; x=xt; c=ct; s++; } cout<<yt<<" "<<xt<<" "<<ct; return 0; }