General
 
 
# Author Problem Lang Verdict Time Memory Sent Judged  
159440047 Practice:
eugalt
1688B - 44 C++14 (GCC 6-32) Accepted 62 ms 880 KB 2022-06-04 04:01:54 2022-06-04 11:12:50
→ Source
#include<regex>
using namespace std;
int a[7<<15],i,n,k;int main(){for(scanf("%*d");~scanf("%d",&n);printf("%d ",
n+((k=__builtin_ctz(i=*min_element(a,a+n))-1)>0?k:k*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