You are viewing a single comment's thread. Return to all comments →
python
from collections import Counter,defaultdict from itertools import combinations,product def acmTeam(topic): bit = defaultdict(int) m = map(lambda x:int(x,2),topic) for a,b in combinations(m,2): bit[(a|b).bit_count()]+=1 maximu = max(bit) yield maximu yield bit[maximu]
Seems like cookies are disabled on this browser, please enable them to open this website
ACM ICPC Team
You are viewing a single comment's thread. Return to all comments →
python