| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 64221 | 杨宜炜 | 上台阶 | C++ | Wrong Answer | 1 MS | 280 KB | 191 | 2024-01-21 08:56:35 |
#include<bits/stdc++.h> using namespace std; int main(){ long long n,a[41]; cin>>n; a[1]=1; a[3]=4; for(int i=4;i<=n;i++){ a[i]=a[i-1]+a[i-2]+a[i-3]; } cout<<a[n]; }
------Input------
15
------Answer-----
5768
------Your output-----
6231846452