rrojin

  • 홈
  • 방명록

다음 순열 1

[백준] 10974 모든 순열 파이썬 python

문제링크 https://www.acmicpc.net/problem/10974 10974번: 모든 순열 N이 주어졌을 때, 1부터 N까지의 수로 이루어진 순열을 사전순으로 출력하는 프로그램을 작성하시오. www.acmicpc.net 코드 방법1 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 import sys input = sys.stdin.readline n = int(input()) a = list(range(1,n+1)) def bf(arr,cur): if arr: for i in range(n-len(cur)): temp = list(cur) temp.append(arr[i]) new_arr = arr[:i]+arr[i+1:] bf(new_arr,temp) else..

Algorithm/Baekjoon 2022.02.22
이전
1
다음
더보기
프로필사진

AI Archive/...

  • 분류 전체보기 (68)
    • ML&DL (13)
      • Pattern Recognition and Mac.. (4)
      • Sung Kim's RL Lecture (7)
      • Reinforcement Learning (2)
    • Paper Review (0)
    • Algorithm (39)
      • Baekjoon (30)
      • LeetCode (9)
    • Traffic Simulation (9)
      • SUMO (7)
      • Unity ML-Agents (2)
    • 삽질Log (2)
    • 기타 (5)
    • LifeLog (0)

Tag

discounted future reward, 다음 순열, overpass turbo, docker swarm, random noise, 백준, container orchestration, 파이썬, Next Permutation, 13913, 7562번, 모두를 위한 RL, Python, 모두를 위한 RL 강좌 #강화학습 #RL #Q-learning #Windows code, exploit and explore, netconvert, Q-learning, BFS, 알고리즘, rl,

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

페이스북 트위터 플러그인

  • Facebook
  • Twitter

Archives

Calendar

«   2025/07   »
일 월 화 수 목 금 토
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31

방문자수Total

  • Today :
  • Yesterday :

Copyright © Kakao Corp. All rights reserved.

티스토리툴바