?
# | Author | Problem | Lang | Verdict | Time | Memory | Sent | Judged | |
---|---|---|---|---|---|---|---|---|---|
239832714 |
Practice: ShenodaSafwat |
1688B - 44 | Python 3 | Accepted | 124 ms | 27956 KB | 2024-01-01 00:20:58 | 2024-01-01 00:20:58 |
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)))
?
?
?
?