#include<bits/stdc++.h> using namespace std; int main() { long long n,w=1;//1.注意是long long不然会超 2.w=1 因为0乘任何数都等于0,所以w要为1 cin>>n; w=pow(2,n);//pow函数作用是计算x的n次方,比如pow(3,4)=3*3*3*3=81 cout<<w;//输出 return 0; }
注册一个 Hydro 通用账户,您就可以在我们提供的所有在线评测服务上提交代码、参与讨论。
使用您的 Hydro 通用账户