You are viewing a single comment's thread. Return to all comments →
python
from itertools import combinations def acmTeam(topic): known_topics = [] for value in list((combinations(topic, 2))): known_topics.append(bin(int(value[0], 2) | int(value[1], 2)).split("b")[1].count("1")) return max(known_topics), known_topics.count(max(known_topics))
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 →
python