1 solutions

  • 0
    @ 2026-7-17 13:55:43
    #include<bits/stdc++.h>
    using namespace std;
    int main()
    {
    	int n;
    	cin>>n;
    	bitset<32> a(n);
    	int cnt=0;
    	for(int j=0;j<32;j++)
    	{
    		if(a[j]==0)
    		{
    			cnt++;
    		}
    		else
    		{
    			break;
    		}
    	}
    	cout<<cnt;
    	return 0;
    }
    
    

    Information

    ID
    2702
    Time
    1000ms
    Memory
    256MiB
    Difficulty
    1
    Tags
    # Submissions
    12
    Accepted
    9
    Uploaded By