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.
def acmTeam(topic):
maxi=0
cou=0
for i in range(len(topic)-1):
for j in range(i+1,len(topic)):
subj = 0
for m,k in zip(topic[i],topic[j]):
if(m=='1' or k=='1'):
subj += 1
ACM ICPC Team
You are viewing a single comment's thread. Return to all comments →
def acmTeam(topic): maxi=0 cou=0 for i in range(len(topic)-1): for j in range(i+1,len(topic)): subj = 0 for m,k in zip(topic[i],topic[j]): if(m=='1' or k=='1'): subj += 1