Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
139786 郝王骏程 青蛙跳台阶 C++ Runtime Error 0 MS 276 KB 405 2025-12-08 20:07:10

Tests(1/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(){ int e,s=0; long long a[41]={0,1,2,4}; cin>>e; for(int i=4;i<=e;i++){ a[i]=a[i-1]*2; } cout<<a[e]; return 0; }


Run Info:

*** stack smashing detected ***: ./Main terminated