| Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|
| 41676 | lmz120809 | 爬楼梯 | C++ | Accepted | 1 MS | 256 KB | 215 | 2024-02-23 09:05:05 |
#include <iostream> using namespace std; int vbs(int n){ if(n==1) return 1; if(n==2) return 2; return vbs(n-1)+vbs(n-2); } int main(){ int n; while(cin>>n){ cout<<vbs(n)<<endl; } return 0; }