?
# | Author | Problem | Lang | Verdict | Time | Memory | Sent | Judged | |
---|---|---|---|---|---|---|---|---|---|
204213805 |
Practice: TonyStark_987 |
1688B - 44 | C++20 (GCC 11-64) | Accepted | 374 ms | 0 KB | 2023-05-02 12:29:30 | 2023-05-02 12:29:30 |
#include <iostream> using namespace std; int main() { int t,n,s,e,i,a,j; for(cin>>t;t--;cout<<(e<n?e:s+e-1)<<'\n')for(cin>>n,s=30,e=i=0;i<n;++i)if(cin>>a,a%2<1)for(++e,j=0;a%2<1||(s=j<s?j:s,0);++j)a/=2; }
?
?
?
?