Run ID:107342

提交时间:2025-01-17 15:26:05

#include<iostream> using namespace std; int main(){ int you=1; int xiao=0,zhong=0,da=0; for(int i=1;i<=8;i++){ if(i==1){ xiao=1; you=0; zhong=0; } else{ zhong+=xiao; xiao=you; you=zhong; da=xiao+zhong+you; } } cout<<da; return 0; }