1 solutions

  • 1
    @ 2026-3-29 16:30:03
    #include<bits/stdc++.h>
    using namespace std;
    int main()
    {
        int n,i=0;
        cin>>n;
        while(n>=1)
        {
            n=n/2;
            i++;
            
        }
        cout<<i;
    	return 0;
    }
    
    

    Information

    ID
    1504
    Time
    1000ms
    Memory
    256MiB
    Difficulty
    10
    Tags
    (None)
    # Submissions
    8
    Accepted
    3
    Uploaded By