| Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|
| 83409 | sh25_shengmy | 上台阶 | C++ | Wrong Answer | 0 MS | 244 KB | 318 | 2026-01-25 21:05:57 |
#include<bits/stdc++.h> using namespace std; long long f[72]; int main(){ int n; f[1]=1; f[2]=2; f[3]=4; while(cin>>n){ if(n!=0){ for(int i=4;i<=n;++i){ f[i]=f[i-1]+f[i-2]; } cout<<f[n]<<endl; } } return 0; }