题解 | #跳台阶扩展问题#
跳台阶扩展问题
https://www.nowcoder.com/practice/953b74ca5c4d44bb91f39ac4ddea0fee
#include <iostream> #include <cmath> using namespace std; int main() { double a = 2.0; double n = 0.0; cin >> n; a = pow (a, n - 1); cout << a; return 0; } // 64 位输出请用 printf("%lld")