www.acmicpc.net/problem/1062 1062번: 가르침 첫째 줄에 단어의 개수 N과 K가 주어진다. N은 50보다 작거나 같은 자연수이고, K는 26보다 작거나 같은 자연수 또는 0이다. 둘째 줄부터 N개의 줄에 남극 언어의 단어가 주어진다. 단어는 영어 소문 www.acmicpc.net import sys from itertools import combinations def set2bit(string_set): bit = 0 for s in string_set: bit |= 2**(ord('z')-ord(s)) return bit def make_candidate(word): candidate = set() for w in word: candidate |= w return candida..