22 条题解

  • 1
    @ 2025-3-30 10:21:46

    #include <bits/stdc++.h>

    using namespace std;

    int main(){
    int a,x = 1;
    cin >> a;
    while(a != 1)
    {
        x++;
        a = a / 2;
    }
    cout << x;
    return 0;
    

    }

    信息

    ID
    644
    时间
    1000ms
    内存
    125MiB
    难度
    3
    标签
    (无)
    递交数
    638
    已通过
    343
    上传者