본문 바로가기

황소개발자

검색하기
황소개발자
프로필사진 hjp845

  • 분류 전체보기 (181)
    • 백준 문제 풀이 (154)
    • 투자자의 생각 (5)
    • 각종 에러 잡기 (10)
    • 앱개발 (8)
    • 매일 11시 영어 (0)
    • 유유자적하게 글쓰기 (0)
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
  • expo
  • 괄호
  • 매일11시
  • 11기
  • 뒤로가기
  • 백준
  • permutation
  • lcm
  • Combination
  • 1260
  • 9095
  • Android
  • itertools
  • 파이썬
  • 6603
  • 11057
  • 코틀린
  • Python
  • 앱
  • 코테
  • 11054
  • Kotlin
  • 순열
  • 최소공배수
  • 11053
  • 안드로이드
  • 1182
  • LCS
  • 홈화면
  • 나머지
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록11048 (1)

황소개발자

백준 11048 파이썬 python : 이동하기 @@황소처럼 우직하게@@

bfs로 풀어보았다. 다이나믹이 아닌 import sys input = sys.stdin.readline from collections import deque n, m = map(int, input().split()) mat = [] for i in range(n): mat.append(list(map(int, input().split()))) score = [[-1 for i in range(m)] for j in range(n)] score[0][0] = mat[0][0] dx = [1, 0] dy = [0, 1] def bfs(y, x): q = deque() q.append([y, x]) while q: y, x = q.popleft() for i in range(2): ny = y + dy[i]..

백준 문제 풀이 2020. 3. 12. 10:32
Prev 1 Next

Blog is powered by kakao / Designed by Tistory

티스토리툴바