题解 | 2的n次方计算
2的n次方计算
https://www.nowcoder.com/practice/35a1e8b18658411388bc1672439de1d9
#include <iostream>
using namespace std;
int main() {
int n;
cin>>n;
cout<<(1<<n)<<endl;
return 0;
}
// 64 位输出请用 printf("%lld")
2的n次方计算
https://www.nowcoder.com/practice/35a1e8b18658411388bc1672439de1d9
#include <iostream>
using namespace std;
int main() {
int n;
cin>>n;
cout<<(1<<n)<<endl;
return 0;
}
// 64 位输出请用 printf("%lld")
相关推荐
斯卡蒂味的鱼汤:知道你不会来数马,就不捞你😂最近数马疯狂扩招,招聘要求挺低的,你能力肯定够,应该就是因为太强了,知道你不会来才不捞你