| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 6130 | 季洁 | 上楼梯 | C++ | Accepted | 100 | 0 MS | 252 KB | 255 | 2020-08-23 19:58:54 |
#include<bits/stdc++.h> using namespace std; int main(){ int n,b,x=1,y=1,z,sum,s; cin>>n; while(n){ x=1; y=1; cin>>b; sum=2; while(sum<=b+1){ z=x+y; sum++; x=y; y=z; } cout<<x<<endl; n--; } return 0; }