본문 바로가기

변명은 만개 결과는 한개

검색하기
변명은 만개 결과는 한개
프로필사진 노마십가

  • 분류 전체보기 (97)
    • 공부 (90)
      • Android (5)
      • Kotlin (17)
      • Tizen wearable (6)
      • C# (1)
      • C++ (2)
      • Problem Solving (33)
      • ML (2)
      • 창고 (2)
      • Discord (7)
      • git (11)
      • Python (2)
      • 임시 보관 (0)
    • 일상 (2)
Guestbook
Notice
Recent Posts
Recent Comments
Link
반응형
«   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
Tags
  • PS
  • Kotlin
  • C++
  • 자바
  • PR
  • 깃허브
  • Python
  • 봇
  • Push
  • 별찍기
  • Branch
  • 코틀린
  • remote
  • For
  • 파이썬
  • 반복
  • Java
  • 타이젠
  • BOT
  • github
  • 백준
  • 풀리퀘스트
  • 깃
  • 디스코드
  • 출력
  • Commit
  • discord
  • 입출력
  • Git
  • Tizen
more
250x250
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록BFS (1)

변명은 만개 결과는 한개

[DFS, BFS 01]

더보기 https://www.acmicpc.net/problem/1260 #include #include #include #include using namespace std; vector v[1001]; bool visit[1001]; void bfs(int startIndex) { queue q; q.push(startIndex); visit[startIndex] = true; while (!q.empty()) { // 큐에 값이 있을 경우 계속 반복 // 큐에 값이 있다 -> 아직 방문하지 않은 노드가 존재함 int x = q.front(); q.pop(); printf("%d ", x); // x index 의 vec size(개수)만큼 훑음 for (size_t i = 0; i < v[x].siz..

공부/Problem Solving 2020. 6. 26. 02:20
이전 Prev 1 Next 다음

Blog is powered by kakao / Designed by Tistory

티스토리툴바