3 条题解

  • 4
    @ 2025-11-30 10:12:45
    #include<bits/stdc++.h>
    using namespace std;
    int main(){
        int s=1,n;
        cin>>n;
        for(int i=1;i<=n;i++)
            s*=2;
        cout<<s;
        return 0;
    }
    
    • -1
      @ 2025-12-17 20:43:27

      #include<bits/stdc++.h> using namespace std; int main() { srand(time(NULL)); cout<<rand(); return 0; }

      • -2
        @ 2026-1-11 19:07:27
        #include<bits/stdc++.h>
        using namespace std;
        typedef long long ll;
        typedef pair<int, int> pii;
        #define MP(a,b) make_pair(a,b)
        int main() {
        	ios::sync_with_stdio ( false );
        	int n, sum = 1;
        	cin >> n;
        
        	for ( int i = 0; i < n; i++ ) sum  = sum * 2;
        
        	cout << sum;
        	return 0;
        }
        
        • 1

        信息

        ID
        6891
        时间
        1000ms
        内存
        128MiB
        难度
        1
        标签
        递交数
        35
        已通过
        18
        上传者