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.
defacmTeam(topic):# Write your code herex=[0,0]l=len(topic)foriinrange(l-1):forjinrange(i+1,l):c=bin(int(topic[i],2)|int(topic[j],2)).count('1')ifx[0]<c:x[0]=cx[1]=1elifx[0]==c:x[1]+=1return(x)
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 →