General
 
 
# Author Problem Lang Verdict Time Memory Sent Judged  
159683699 Practice:
niumeng
1688B - 44 PyPy 3-64 Accepted 296 ms 20404 KB 2022-06-07 07:51:47 2022-06-07 07:51:46
→ Source
import math;I=input
for _ in range(int(I())):
  n=int(I());e,m=0,31
  for v in map(int,I().split()):
    if v&1==0:
      e+=1;m=min(m, int(math.log2(v&-v)))
  print(e+(m-1 if e==n else 0))
?
Time: ? ms, memory: ? KB
Verdict: ?
Input
?
Participant's output
?
Jury's answer
?
Checker comment
?
Diagnostics
?
Click to see test details