🍒 Chae-ri Dev 🍒

  • 홈
  • 태그
  • 방명록

2024/09/22 1

[BaekJoon/Python] 토마토 (BFS)

https://www.acmicpc.net/problem/7576  # 코드import sysfrom collections import dequeM, N = map(int, sys.stdin.readline().split())graph = []for _ in range(N): graph.append(list(map(int, input().split())))q = deque()num = 0for i in range(N): for j in range(M): if graph[i][j] == 1: q.append([i, j])def bfs(): while q: dx = [-1, 1, 0, 0] dy = [0, 0, -1, 1] x, y = q.popleft() ..

Algorithm/BackJoon 2024.09.22
이전
1
다음
더보기
프로필사진

🍒 Chae-ri Dev 🍒

채리의 개발 블로그 ٩( *˙0˙*)۶

250x250
반응형
  • 분류 전체보기 (89)
    • Frontend (4)
      • Package Manager (1)
      • ESLint (1)
      • Prettier (1)
      • 웹 서버 (1)
    • CS (9)
      • 운영체제 (7)
      • 네트워크 (2)
      • 데이터베이스 (0)
    • React (7)
    • NextJS (1)
    • JavaScript (6)
    • Css (1)
    • GSAP (1)
    • Python (3)
    • Algorithm (17)
      • Programmers (7)
      • BackJoon (1)
      • 알고리즘 정리 (9)
    • Cloud (1)
      • Docker (1)
    • OPIc (25)
      • 오픽노잼(IM) (16)
      • 오픽노잼(IH) (9)
    • file (2)
    • 프로젝트 (2)
    • 우리FIS아카데미 (6)
    • Git (2)
    • Etc (2)

Tag

Python, 운영체제, 글로벌소프트웨어캠퍼스, javascript, 오픽, 우리FIS아카데미, 우리에프아이에스, OS, k-디지털트레이닝, 오픽노잼, 파이썬, 알고리즘, algorithm, react, 우리FISA, OPIC, 프로그래머스, 클라우드서비스개발, 리액트, Github,

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

Archives

Calendar

«   2024/09   »
일 월 화 수 목 금 토
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

방문자수Total

  • Today :
  • Yesterday :

Copyright © Kakao Corp. All rights reserved.

티스토리툴바