[ํ๋ก๊ทธ๋๋จธ์ค] ๊ฑฐ๋ฆฌ๋๊ธฐ ํ์ธํ๊ธฐ 2021 ์นด์นด์ค ์ธํด์ญ DFS
๋ฌธ์ : https://programmers.co.kr/learn/courses/30/lessons/81302 ์ฝ๋ฉํ
์คํธ ์ฐ์ต - ๊ฑฐ๋ฆฌ๋๊ธฐ ํ์ธํ๊ธฐ [["POOOP", "OXXOX", "OPXPX", "OOXOX", "POXXP"], ["POOPX", "OXPXP", "PXXXO", "OXXXO", "OOOPP"], ["PXOPX", "OXOXP", "OXPOX", "OXXOP", "PXPOX"], ["OOOXX", "XOOOX", "OOOXX", "OXOOX", "OOOOO"], ["PXPXP", "XPXPX", "PXPXP", "XPXPX", "PXPXP"]] [1, 0, 1, 1, 1] programmers.co.kr ๋ถ์ : ํฌ๊ธฐ๋ 5X5 ๋ฐฐ์ด ์๋ฅผ ๋ค์ด ์
๋ ฅ์ด 2์ฐจ์ ๋ฐฐ์ด๋ก ์ฃผ์ด์ง ๋ P๋ ์ฌ๋..
2021. 9. 5.
[ํ๋ก๊ทธ๋๋จธ์ค] ๊ฒฝ์ฃผ๋ก ๊ฑด์ค 2020 ์นด์นด์ค ์ธํด์ฝ level3
๋ฌธ์ : programmers.co.kr/learn/courses/30/lessons/67259 ์ฝ๋ฉํ
์คํธ ์ฐ์ต - ๊ฒฝ์ฃผ๋ก ๊ฑด์ค [[0,0,0,0,0,0,0,1],[0,0,0,0,0,0,0,0],[0,0,0,0,0,1,0,0],[0,0,0,0,1,0,0,0],[0,0,0,1,0,0,0,1],[0,0,1,0,0,0,1,0],[0,1,0,0,0,1,0,0],[1,0,0,0,0,0,0,0]] 3800 [[0,0,1,0],[0,0,0,0],[0,1,0,1],[1,0,0,0]] 2100 [[0,0,0,0,0,0],[0,1,1,1,1,0],[0,0,1,0,0,0],[1,0,0,1,0,1],[ programmers.co.kr ๋ถ์ : ์ด ๋ฌธ์ ๋ ๋ฐฑ์ค์์ ํ์๋ ๋ด๋ฆฌ๋ง๊ธธ ๋ฌธ์ ์ ๋น์ทํ๊ฒ dp + dfs์ ์กฐํฉ๋ฌธ์ ์๋ค...
2021. 5. 7.
[ํ๋ก๊ทธ๋๋จธ์ค] Summer/Winter Coding ์งํ ์ด๋ level 4 MST
๋ฌธ์ : programmers.co.kr/learn/courses/30/lessons/62050 ์ฝ๋ฉํ
์คํธ ์ฐ์ต - ์งํ ์ด๋ [[1, 4, 8, 10], [5, 5, 5, 5], [10, 10, 10, 10], [10, 10, 10, 20]] 3 15 [[10, 11, 10, 11], [2, 21, 20, 10], [1, 20, 21, 11], [2, 1, 2, 1]] 1 18 programmers.co.kr ๋ถ์ : ๋ฌธ์ ๋ฅผ ๊ตฌํํ๋ฉด ๋๋ ์์ด์๋ค. ํฌ๋ฃจ์ค์นผ ์๊ณ ๋ฆฌ์ฆ, spanning tree ์ฒ์ ๊ณต๋ถํด๋ณด๋๋ฐ ๋ฐฑ์ค์์ ์ ์ ๋ฌธ์ ๋ฅผ ๋ ํ์ด๋ด์ผ๊ฒ ๋ค. c++ ์ฝ๋ : // // [SW] 2019_terrainMove.cpp // SOMA๐ฉ๐ป๐ป // // Created by JoSoJeong on 202..
2021. 5. 2.
[ํ๋ก๊ทธ๋๋จธ์ค] ํฉ์น ํ์ ์๊ธ 2021 ์นด์นด์ค ๋ธ๋ผ์ธ๋ ํ
์คํธ level3
๋ฌธ์ : programmers.co.kr/learn/courses/30/lessons/72413 ์ฝ๋ฉํ
์คํธ ์ฐ์ต - ํฉ์น ํ์ ์๊ธ 6 4 6 2 [[4, 1, 10], [3, 5, 24], [5, 6, 2], [3, 1, 41], [5, 1, 24], [4, 6, 50], [2, 4, 66], [2, 3, 22], [1, 6, 25]] 82 7 3 4 1 [[5, 7, 9], [4, 6, 4], [3, 6, 1], [3, 2, 3], [2, 1, 6]] 14 6 4 5 6 [[2,6,6], [6,3,7], [4,6,7], [6,5,11], [2,5,12], [5,3,20], [2,4 programmers.co.kr ๋ถ์ : ์ฒซ๋ฒ์งธ ์ ๊ทผ ๋ฌธ์ ๋ฅผ ๋ณด์ํ๋ a์ b๊ฐ ๋ฐ๋ก ๊ฐ์๋์ ์ค๊ฐ ์ง์ ๊ฑธ์ณ์ ๋์ฐฉํ ..
2021. 5. 2.