| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 129022 | 周子潇 | 青蛙跳台阶 | C++ | Wrong Answer | 1 MS | 272 KB | 429 | 2025-08-21 15:30:49 |
#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ int n; long long a[41]={0,1,2,4}; for(int i=4;i<=40;i++) { a[i]=a[i-1]+a[i-2];a[i-3]; } cin>>n; cout<<a[n]; return 0; }
------Input------
40
------Answer-----
549755813888
------Your output-----
204668310