본문 바로가기

Little Jay

검색하기
Little Jay
프로필사진 Jay, Lee

  • 분류 전체보기 (304)
    • 알고리즘 (210)
      • BOJ (195)
      • Project_Euler (8)
      • DataStructure (6)
    • FrontEnd (13)
      • SCSS (2)
      • RegularExpression (1)
      • MarkDown (1)
      • Front End Interview Handboo.. (4)
    • Univ (60)
      • System Programming (18)
      • Operating System(OS) (31)
      • Study (8)
      • Algorithm (2)
    • Book Review (15)
    • Papers, Research, Report (4)
Guestbook
Notice
Recent Posts
Recent Comments
Link
«   2026/01   »
일 월 화 수 목 금 토
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
Tags
  • 컴공과
  • 컴공
  • 브루트포스
  • 자료구조
  • 구현
  • 코테
  • 너비우선탐색
  • 오에스
  • 컴퓨터공학과
  • 북리뷰
  • c++
  • 오퍼레이팅시스템
  • cs
  • bfs
  • 그래프
  • coding
  • 개발
  • 알고리즘
  • 코딩
  • Computer science
  • Operating System
  • 문제풀이
  • OS
  • DP
  • 정석학술정보관
  • vector
  • 정석
  • 백준
  • Stack
  • 스택
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록backtracking (1)

Little Jay

[C++] 백준 15650번 - N과 M(2)

백트래킹에 들어가있지만, DFS로 풀 수 있는것 같다. 둘이 조금은 비슷한 성향을 가진 문제인 것 같다. #include #include #define MAX 9 using namespace std; int n, m; int arr[MAX] = { 0, }; bool visited[MAX] = { 0, }; void dfs(int num, int cnt) { if (cnt == m) { for (int i = 0; i < m; i++) cout m; dfs(1, 0); return 0; }

알고리즘/BOJ 2021. 11. 6. 15:36
Prev 1 Next

Blog is powered by kakao / Designed by Tistory

티스토리툴바