那做了??????????

wc048 我话超多我有罪 2025-03-02 18:49:27 2025-03-02 18:50:34 16

#include<bits/stdc++.h> using namespace std; int main() { long long int k,n1=0,n2=1,t; cin>>k; if(k==1) { cout<<0<<" "; } if(k==2) { cout<<0<<" "<<1<<" "; } else { cout<<0<<" "<<1<<" "; for(int i=3;i<=k;i++) { t=n1+n2; n1=n2; n2=t; cout<<t<<" "; } }

}

{{ vote && vote.total.up }}

共 2 条回复

root 站长

括号没对齐

wcsp2503

受着