You are viewing a single comment's thread. Return to all comments →
from itertools import combinations from collections import Counter def acmTeam(topic): a=list(combinations(topic,2)) p=[] for i in a: m=list(filter(lambda x :'1' in x,zip(i[0],i[1]))) p.append(len(m)) return max(Counter(p).items())
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 →