-
-
Save shounaklohokare/826b4db4370c7b28959af88e274486c5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def acmTeam(topic): | |
ans = [] | |
for i in range(n): | |
for j in range(i+1, n): | |
know=0 | |
for a,b in zip(topic[i], topic[j]): | |
if a=='1' or b=='1': | |
know+=1 | |
ans.append(know) | |
return [max(ans), ans.count(max(ans))] | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment