| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 111784 | 蒋沛霖 | 爬楼梯 | C++ | Accepted | 100 | 0 MS | 248 KB | 211 | 2023-11-25 08:05:50 |
#include <bits/stdc++.h> using namespace std; int a[1005]; int main() { int n; cin >> n; a[1] = 1; a[2] = 2; for(int i = 3;i <= n;i++) a[i] = a[i - 1] + a[i - 2]; cout << a[n]; return 0; }