题解 | #2的n次方计算#
2的n次方计算
https://www.nowcoder.com/practice/35a1e8b18658411388bc1672439de1d9
#include <iostream>
using namespace std;
int main() {
int a;
while (cin >> a ) { // 注意 while 处理多个 case
cout <<(2<<(a-1));//左移的妙处
}
}
// 64 位输出请用 printf("%lld")
