General
 
 
# Author Problem Lang Verdict Time Memory Sent Judged  
159433885 Practice:
eugalt
1688B - 44 Python 3 Accepted 124 ms 17496 KB 2022-06-04 00:12:28 2022-06-04 00:12:28
→ Source
for s in[*open(0)][2::2]:a=[x&-x for x in
map(int,s.split())];m=a.count(b:=min(a));x,y=(bin(x)[::-1].find('1')for x
in(b,b*m));print(len(a)-m+min(m*x,m-1+y,m-2+x+1))
?
Time: ? ms, memory: ? KB
Verdict: ?
Input
?
Participant's output
?
Jury's answer
?
Checker comment
?
Diagnostics
?
Click to see test details