?
# | Author | Problem | Lang | Verdict | Time | Memory | Sent | Judged | |
---|---|---|---|---|---|---|---|---|---|
161694099 |
Practice: xumengxing123 |
1688B - 44 | Python 3 | Accepted | 124 ms | 17508 KB | 2022-06-25 08:17:57 | 2022-06-25 08:17:57 |
for s in[*open(0)][2::2]:b=min(a:=[x&-x for x in map(int,s.split())]);print(len(a)+min(k:=bin(b)[::-1].find('1')-1,k*a.count(b)))
?
?
?
?