[백준/Python] (G5) 암호 만들기 - 1759


[백준/Python] (G5) 암호 만들기 - 1759

https://www.acmicpc.net/problem/1759 1759번: 암호 만들기 첫째 줄에 두 정수 L, C가 주어진다. (3 ≤ L ≤ C ≤ 15) 다음 줄에는 C개의 문자들이 공백으로 구분되어 주어진다. 주어지는 문자들은 알파벳 소문자이며, 중복되는 것은 없다. www.acmicpc.net 코드 from itertools import combinations L, C = map(int, input().split()) alphabet = sorted(input().split()) for pw in combinations(alphabet, L): vowels = sum(c in 'aeiou' for c in pw) if 1


원문링크 : [백준/Python] (G5) 암호 만들기 - 1759