1 条题解

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

    #include <bits/stdc++.h> using namespace std;

    int main() { int n, ans = 0; cin >> n; while (n % 2 == 0) { n = n / 2; ans++; } cout << ans; return 0; }

    • @ 2026-7-8 15:11:40

      记得给我题解点个赞OVO

  • 1

【入门】请问一个正整数能够整除几次2?

信息

ID
30234
时间
1000ms
内存
256MiB
难度
4
标签
递交数
46
已通过
22
上传者