You are viewing a single comment's thread. Return to all comments →
from itertools import combinations,izip def acmTeam(topic): x=[sum(a=='1' or b=='1' for a,b in izip(a,b)) for a,b in combinations(topic,2)] m=max(x) return m,sum(m==x for x in x)
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 →