题解 | #跳台阶扩展问题#
跳台阶扩展问题
https://www.nowcoder.com/practice/953b74ca5c4d44bb91f39ac4ddea0fee
#include <iostream>
using namespace std;
int main() {
int n;
cin >> n;
int res = 1;
if(n < 2) cout << res;
else cout << (res<<(n-1));
return 0;
}
// 64 位输出请用 printf("%lld")
美的集团公司福利 872人发布
