6 条题解

  • 1
    @ 2023-2-4 21:11:13
    #include<bits/stdc++.h>
    #include <math.h>
    #include <stack>
    #include <stdio.h>
    #include <iostream>
    #include <vector>
    #include <iomanip>
    #include <string>
    #include <algorithm>
    using namespace std;
    int main(){
        int n,m=1;
        cin>>n;
        while(n>0){
            m=(m+1)*2;
            n--;
        }
        cout<<m;
    }
    
    • @ 2025-7-11 11:38:18

      差一个 “return 0;”

信息

ID
1954
时间
1000ms
内存
128MiB
难度
3
标签
递交数
238
已通过
126
上传者