6 solutions

  • 1
    @ 2026-7-21 15:03:11

    正解

     #include<bits/stdc++.h>
    using namespace std;
    int main()
    {
        int n;
        cin>>n;
        if(n>5)
        {
            cout<<6<<endl;
        }
        if(n>27)
        {
            cout<<28<<endl;
        }
        if(n>495)
        {
            cout<<496<<endl;
        }
        if(n>8127)
        {
            cout<<8128<<endl;
        }
        return 0; 
    }
    

    Information

    ID
    930
    Time
    1000ms
    Memory
    256MiB
    Difficulty
    1
    Tags
    (None)
    # Submissions
    92
    Accepted
    30
    Uploaded By