题解
2026-01-17 10:35:51
发布于:浙江
11阅读
0回复
0点赞
#include<bits/stdc++.h>
#include <cassert>
using namespace std;
int main () {
int n;
cin >> n;
int ans = 1e9;
assert(1 <= n && n <= 200);
for(int i = 0; i < n; i++) {
int x;
cin >> x;
//assert(1 <= x && x <= 1e9);
for(int j = 0; j < 32; j++) {
if(x & (1 << j)) ans = min(ans, j);
}
}
cout << ans << endl;
}
这里空空如也







有帮助,赞一个