General
 
 
# Author Problem Lang Verdict Time Memory Sent Judged  
171470893 Practice:
Rosemary
1688B - 44 C++17 (GCC 7-32) Accepted 62 ms 876 KB 2022-09-09 08:55:21 2022-09-09 08:55:21
→ Source
#include<regex>
int a[7<<15],i,n,k;int main(){for(scanf("%*d");~scanf("%d",&n);printf("%d ",
n+((k=__builtin_ctz(i=*std::min_element(a,a+n))-1)>0?k:k*std::count(a,a+n,i))))
for(i=n;i--;)scanf("%d",a+i),a[i]&=-a[i];}
?
Time: ? ms, memory: ? KB
Verdict: ?
Input
?
Participant's output
?
Jury's answer
?
Checker comment
?
Diagnostics
?
Click to see test details