• + 0 comments

    def acmTeam(topic):

        res = []
        for i in range(len(topic)):  
             j = i+1
                while j<len(topic):
            rs = str(bin(int(topic[i], 2) | int(topic[j], 2)))[2:]
            res.append(len([1 for z in rs if z=='1']))
            j +=1
    return [max(res), res.count(max(res))]