Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
161231 王慕哲 青蛙跳台阶 C++ Accepted 1 MS 272 KB 224 2026-10-03 14:09:59

Tests(10/10):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ int n; long long a[50]; cin>>n; a[1]=1; for(int i=2;i<=n;i++){ a[i]=a[i-1]*2; } cout<<a[n]<<endl; return 0; }