백준_10974 (모든 순열_실버3_기본문제)

RostoryT·2022년 7월 3일
0

Brute force

목록 보기
7/18

기본적인 문제 5분컷

from itertools import permutations
n = int(input())
arr = [i+1 for i in range(n)]

for i in permutations(arr,n):
    print(" ".join(map(str,i)))

profile
Do My Best

0개의 댓글