Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
111823 万隽宇 青蛙跳台阶 C++ Wrong Answer 1 MS 268 KB 457 2025-03-06 19:06:00

Tests(0/10):


Code:

#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(){ long long a[51]={0,1,2,4}; long long n,b=0; cin>>n; for(int i=4;i<51;i++){ for(int j=1;j<=n;j++){ a[i]+=a[i-j]; } } cout<<a[n]; return 0; }


Run Info:

------Input------
40
------Answer-----
549755813888
------Your output-----
-8791345275000635564