'2024/02/19 글 목록
본문 바로가기

노트

검색하기
노트
프로필사진 _Myway

  • 분류 전체보기 (49)
    • 코딩 (16)
      • Raspberry Pi (2)
      • Python (4)
      • Node.js (2)
      • 웹 프론트 (3)
      • Ubuntu|Linux (1)
      • MongoDB|mongoose (2)
      • GitLab (1)
      • Springboot (1)
    • 알고리즘 (33)
Guestbook
Notice
  • 도움이 되셨다면 공감버튼 한번씩 부탁드려요!
Recent Posts
Recent Comments
Link
«   2024/02   »
일 월 화 수 목 금 토
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
Tags
  • NAV
  • MongoDB
  • Python
  • 파이썬
  • 트리
  • 크롤링
  • 13237
  • algotythm
  • node.js
  • 라즈베리파이3b+
  • Algorythm
  • springboot3.x
  • CSS
  • 16.04
  • 라즈비안
  • dp
  • HTML
  • 라즈베리파이
  • bootstrap
  • 라즈베리파이3
  • ubuntu
  • raspberrypi
  • 2909
  • 알고리즘
  • 2579
  • Crawling
  • nav-tab
  • baekjun
  • dynaminprogramming
  • 백준
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록2024/02/19 (1)

노트

[백준] 1389번 케빈 베이컨의 6단계 법칙 python

import sys from collections import deque def bfs(v): queue = deque([v]) visited[v] = 1 while queue: target = queue.popleft() for i in graph[target]: if not visited[i]: visited[i] = visited[target] + 1 queue.append(i) n, m = map(int, sys.stdin.readline().split()) graph = [[] for _ in range(n + 1)] for i in range(m): a, b = map(int, sys.stdin.readline().split()) graph[a].append(b) graph[b].append(..

알고리즘 2024. 2. 19. 16:01
Prev 1 Next

Blog is powered by kakao / Designed by Tistory

티스토리툴바