1 条题解

  • 0
    @ 2024-4-13 14:36:14
    #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;
    }
    

    信息

    ID
    38
    时间
    1000ms
    内存
    128MiB
    难度
    4
    标签
    递交数
    49
    已通过
    24
    上传者