We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
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))]
Cookie support is required to access HackerRank
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 →
def acmTeam(topic):