• + 0 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())