| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 160336 | Kevin | C语言7.1 | C++ | Presentation Error | 0 MS | 272 KB | 308 | 2026-09-16 15:48:48 |
#include<iostream> #include<iomanip> using namespace std; int main() { int a[45]; a[1]=1; a[2]=1; int n; cin>>n; for(int i=3;i<=n;i++){ a[i]=a[i-1]+a[i-2]; } int s=0; for(int i=1;i<=n;i++){ if(s%5==0) cout<<endl; s++; cout<<setw(12)<<a[i]; } cout<<endl; return 0; }