| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 152711 | 王丞杰 | 上台阶 | C++ | Wrong Answer | 1 MS | 264 KB | 198 | 2026-05-01 17:28:54 |
#include<bits/stdc++.h> using namespace std; long long a[50]={0,1,2,4}; int main(){ int n; cin>>n; for(int i=4;i<=n-1;i++){ a[i]=a[i-1]+a[i-2]+a[i-3]; } cout<<a[n]; return 0; }
------Input------
15
------Answer-----
5768
------Your output-----
0