본문 바로가기 메뉴 바로가기

note

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

note

검색하기 폼
  • 분류 전체보기 (38)
    • Deep Learning (14)
    • digital signal process (3)
    • MLOps (6)
    • OS (5)
    • algorithm (2)
    • error (0)
    • etc (8)
    • DAP (0)
      • SQLD (0)
  • 방명록

알고리즘 (1)
BOJ2206: 벽 부수고 이동하기

문제 : boj 2206 풀이 벽이 뚫리지 않았을 때(w=0), 벽이 뚫렸을 때(w=1)를 확인할 수 있도록 배열 dist를 3차원 배열로 만들고, 거리를 담는다. 새로 탐색하는 좌표를 q에 담고, 하나씩 꺼내면서 이전 좌표값에 1씩 더한다. 이 값을 dist에 넣는다. #include #include using namespace std; struct map { int x, y, w; }; int N,M; int zido[1001][1001]; int dist[2][1001][1001]; int dx[]={1,0,-1,0}; int dy[]={0,1,0,-1}; int bfs(){ map now; int xtmp, ytmp; queue q; q.push({0,0,0}); dist[0][0][0] = 1;..

algorithm 2021. 12. 4. 00:22
이전 1 다음
이전 다음
최근에 올라온 글
TAG
  • OS
  • machine learning
  • TRACKING
  • Operating System
  • 신호처리
  • DSP
  • 딥러닝
  • depthmap
  • Building Basic GAN
  • mode collapse
  • Depth estimation
  • Deep learning
  • Raspberry Pi
  • 운영체제
  • MLOps
  • feature
  • conditional GAN
  • depth
  • deeplearning
  • AI
  • controllable GAN
  • image
  • 3d object detection
  • pcb
  • design pattern
  • 디지털신호처리
  • ML
  • Gan
  • Generative Model
  • ML Pipeline
more
Total
Today
Yesterday
최근에 달린 댓글
링크
공지사항
«   2025/05   »
일 월 화 수 목 금 토
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
글 보관함

Blog is powered by Tistory / Designed by Tistory

티스토리툴바