[백준] 15663~15666번 N과 M[9~12] [Python] - 순열, 조합, 중복
백준 문제 사이트 N과 M[9], N과 M[10], N과 M[11], N과 M[12] 중복된 원소가 포함되기도 한 N개의 자연수가 주어졌을 때, M개의 순열, 조합, 중복 순열, 중복 조합을 구하는 문제 N과 M[7, 8]리뷰 https://savvy0402.tistory.com/192 dict.fromkeys$($딕셔너리의 키 값들, 현재 생성할 딕셔너리의 일괄적으로 들어가게 될 값$)$ 값을 안 넣으면 모든 key의 값이 None으로 저장됨 N과 M[9] from sys import stdin from itertools import permutations input = stdin.readline N, M = map(int, input().split()) s = sorted(input().rstrip(..