loltochess

  • 홈
  • 태그
  • 방명록

백준/백트래킹 2

[백준] C++ 15663번(N과 M (9))

#include #include using namespace std;int arr[10];void DFS(int count);int n=0;int m=0;int main(void){ ios::sync_with_stdio(false); cin.tie(NULL); cin>>n>>m; for(int i=0; i>arr[i]; } sort(arr, arr+n); DFS(0); return 0;}int result[10];int visited[10];void DFS(int count){ if(count==m) { for(int i=0; i순열을 출력하고 중복되는 부분이 있으면 제거해 주면 된다.중복되는 부분을 어떻게 제거하는가??위 실행결과를 보면 179가 두 번 나오고 719가 두 번 나오는 등 중..

백준/백트래킹 2024.07.08

[백준] C++ 15654(N과 M(5))

#include #include using namespace std;void DFS(int stop,int visited[10]);int arr[10];int result[10];int n=0;int m=0;int main(void){ ios::sync_with_stdio(false); cin.tie(NULL); cin>>n>>m; for(int i=0; i>arr[i]; } sort(arr,arr+n); int visited[10]={0}; DFS(0,visited); return 0;}void DFS(int stop,int visited[10]){ int temp[10]; for(int i=0; i #include #include using namespace std;void DFS(..

백준/백트래킹 2024.07.08
이전
1
다음
더보기
프로필사진

loltochess

  • 분류 전체보기 (151)
    • UNITY (16)
      • 오목 (0)
      • 크레이지아케이드 모작 (14)
      • Hide and chicken (0)
      • LoL 모작 (2)
    • 백준 (110)
      • 동적계획법 (16)
      • 그리디 (23)
      • 탐색 (15)
      • 백트래킹 (2)
      • 해시 (12)
      • 구현 (2)
      • 실랜디, 골랜디 (23)
      • 코테문제집 (17)
    • UNREAL (5)
    • CS (13)
      • OS (9)
      • 컴퓨터네트워크 (0)
      • 컴퓨터구조 (0)
      • 자료구조&&알고리즘 (4)
    • 프로그래머스 (1)
      • 해시 (1)
    • C# (5)

Tag

14052, 그리디, 백준, 11742, 11000, 10026,

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

페이스북 트위터 플러그인

  • Facebook
  • Twitter

Archives

Calendar

«   2025/05   »
일 월 화 수 목 금 토
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.

티스토리툴바