Skip to content

Commit

Permalink
update md files
Browse files Browse the repository at this point in the history
  • Loading branch information
rhs0266 committed May 30, 2021
1 parent 92bf280 commit d8de809
Show file tree
Hide file tree
Showing 10 changed files with 149 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
|N과 M (2)|[링크](boj.kr/15650)|[링크](https://github.com/rhs0266/FastCampus/tree/main/%EA%B0%95%EC%9D%98%20%EC%9E%90%EB%A3%8C/02-%EC%95%8C%EA%B3%A0%EB%A6%AC%EC%A6%98/01~02-%EC%99%84%EC%A0%84%20%ED%83%90%EC%83%89/%EB%AC%B8%EC%A0%9C%EB%B3%84%20%EC%BD%94%EB%93%9C/15650-N%EA%B3%BC%20M(2))|
|연산자 끼워넣기|[링크](boj.kr/14888)|[링크](https://github.com/rhs0266/FastCampus/tree/main/%EA%B0%95%EC%9D%98%20%EC%9E%90%EB%A3%8C/02-%EC%95%8C%EA%B3%A0%EB%A6%AC%EC%A6%98/01~02-%EC%99%84%EC%A0%84%20%ED%83%90%EC%83%89/%EB%AC%B8%EC%A0%9C%EB%B3%84%20%EC%BD%94%EB%93%9C/14888-%EC%97%B0%EC%82%B0%EC%9E%90%20%EB%81%BC%EC%9B%8C%EB%84%A3%EA%B8%B0)|
|N Queen|[링크](boj.kr/9663)|[링크](https://github.com/rhs0266/FastCampus/tree/main/%EA%B0%95%EC%9D%98%20%EC%9E%90%EB%A3%8C/02-%EC%95%8C%EA%B3%A0%EB%A6%AC%EC%A6%98/01~02-%EC%99%84%EC%A0%84%20%ED%83%90%EC%83%89/%EB%AC%B8%EC%A0%9C%EB%B3%84%20%EC%BD%94%EB%93%9C/9663-N%20Queen)|
|**연습문제**|
|부분 수열의 합|[링크](boj.kr/1182)|[링크](https://github.com/rhs0266/FastCampus/tree/main/%EA%B0%95%EC%9D%98%20%EC%9E%90%EB%A3%8C/02-%EC%95%8C%EA%B3%A0%EB%A6%AC%EC%A6%98/01~02-%EC%99%84%EC%A0%84%20%ED%83%90%EC%83%89/%EB%AC%B8%EC%A0%9C%EB%B3%84%20%EC%BD%94%EB%93%9C/1182-%EB%B6%80%EB%B6%84%EC%88%98%EC%97%B4%EC%9D%98%20%ED%95%A9)|
|암호 만들기|[링크](boj.kr/1759)|[링크]|
|N과 M (9)|[링크](boj.kr/15663)|[링크]|
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
|문제 이름|문제 링크|답안 코드 링크|
|---|---|---|
|국영수|[링크](boj.kr/10825)|[링크](https://github.com/rhs0266/FastCampus/tree/main/%EA%B0%95%EC%9D%98%20%EC%9E%90%EB%A3%8C/02-%EC%95%8C%EA%B3%A0%EB%A6%AC%EC%A6%98/03~04-%EC%A0%95%EB%A0%AC/%EB%AC%B8%EC%A0%9C%EB%B3%84%20%EC%BD%94%EB%93%9C/10825-%EA%B5%AD%EC%98%81%EC%88%98)|
|수열 정렬|[링크](boj.kr/1015)|[링크](https://github.com/rhs0266/FastCampus/tree/main/%EA%B0%95%EC%9D%98%20%EC%9E%90%EB%A3%8C/02-%EC%95%8C%EA%B3%A0%EB%A6%AC%EC%A6%98/03~04-%EC%A0%95%EB%A0%AC/%EB%AC%B8%EC%A0%9C%EB%B3%84%20%EC%BD%94%EB%93%9C/1015-%EC%88%98%EC%97%B4%20%EC%A0%95%EB%A0%AC)|
|카드|[링크](boj.kr/11652)|[링크](https://github.com/rhs0266/FastCampus/tree/main/%EA%B0%95%EC%9D%98%20%EC%9E%90%EB%A3%8C/02-%EC%95%8C%EA%B3%A0%EB%A6%AC%EC%A6%98/03~04-%EC%A0%95%EB%A0%AC/%EB%AC%B8%EC%A0%9C%EB%B3%84%20%EC%BD%94%EB%93%9C/11652-%EC%B9%B4%EB%93%9C)|
|화살표 그리기|[링크](boj.kr/15970)|[링크](https://github.com/rhs0266/FastCampus/tree/main/%EA%B0%95%EC%9D%98%20%EC%9E%90%EB%A3%8C/02-%EC%95%8C%EA%B3%A0%EB%A6%AC%EC%A6%98/03~04-%EC%A0%95%EB%A0%AC/%EB%AC%B8%EC%A0%9C%EB%B3%84%20%EC%BD%94%EB%93%9C/15970-%ED%99%94%EC%82%B4%ED%91%9C%20%EA%B7%B8%EB%A6%AC%EA%B8%B0)|
|**연습문제**|
|단어 정렬|[링크](boj.kr/1181)|[링크](https://github.com/rhs0266/FastCampus/tree/main/%EA%B0%95%EC%9D%98%20%EC%9E%90%EB%A3%8C/02-%EC%95%8C%EA%B3%A0%EB%A6%AC%EC%A6%98/03~04-%EC%A0%95%EB%A0%AC/%EB%AC%B8%EC%A0%9C%EB%B3%84%20%EC%BD%94%EB%93%9C/1181-%EB%8B%A8%EC%96%B4%20%EC%A0%95%EB%A0%AC)|
|파일 정리|[링크](boj.kr/20291)|[링크](https://github.com/rhs0266/FastCampus/tree/main/%EA%B0%95%EC%9D%98%20%EC%9E%90%EB%A3%8C/02-%EC%95%8C%EA%B3%A0%EB%A6%AC%EC%A6%98/03~04-%EC%A0%95%EB%A0%AC/%EB%AC%B8%EC%A0%9C%EB%B3%84%20%EC%BD%94%EB%93%9C/20291-%ED%8C%8C%EC%9D%BC%20%EC%A0%95%EB%A6%AC)|
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
|문제 이름|문제 링크|답안 코드 링크|
|---|---|---|
|먹을 것인가 먹힐 것인가|[링크](boj.kr/7795)|[링크](https://github.com/rhs0266/FastCampus/tree/main/%EA%B0%95%EC%9D%98%20%EC%9E%90%EB%A3%8C/02-%EC%95%8C%EA%B3%A0%EB%A6%AC%EC%A6%98/05~06-%EC%9D%B4%EB%B6%84%20%ED%83%90%EC%83%89/%EB%AC%B8%EC%A0%9C%EB%B3%84%20%EC%BD%94%EB%93%9C/7795-%EB%A8%B9%EC%9D%84%20%EA%B2%83%EC%9D%B8%EA%B0%80%20%EB%A8%B9%ED%9E%90%20%EA%B2%83%EC%9D%B8%EA%B0%80)|
|두 용액|[링크](boj.kr/2470)|[링크](https://github.com/rhs0266/FastCampus/tree/main/%EA%B0%95%EC%9D%98%20%EC%9E%90%EB%A3%8C/02-%EC%95%8C%EA%B3%A0%EB%A6%AC%EC%A6%98/05~06-%EC%9D%B4%EB%B6%84%20%ED%83%90%EC%83%89/%EB%AC%B8%EC%A0%9C%EB%B3%84%20%EC%BD%94%EB%93%9C/2470-%EB%91%90%20%EC%9A%A9%EC%95%A1)|
|나무 자르기|[링크](boj.kr/2805)|[링크](https://github.com/rhs0266/FastCampus/tree/main/%EA%B0%95%EC%9D%98%20%EC%9E%90%EB%A3%8C/02-%EC%95%8C%EA%B3%A0%EB%A6%AC%EC%A6%98/05~06-%EC%9D%B4%EB%B6%84%20%ED%83%90%EC%83%89/%EB%AC%B8%EC%A0%9C%EB%B3%84%20%EC%BD%94%EB%93%9C/2805-%EB%82%98%EB%AC%B4%20%EC%9E%90%EB%A5%B4%EA%B8%B0)|
|공유기 설치|[링크](boj.kr/2110)|[링크](https://github.com/rhs0266/FastCampus/tree/main/%EA%B0%95%EC%9D%98%20%EC%9E%90%EB%A3%8C/02-%EC%95%8C%EA%B3%A0%EB%A6%AC%EC%A6%98/05~06-%EC%9D%B4%EB%B6%84%20%ED%83%90%EC%83%89/%EB%AC%B8%EC%A0%9C%EB%B3%84%20%EC%BD%94%EB%93%9C/2110-%EA%B3%B5%EC%9C%A0%EA%B8%B0%20%EC%84%A4%EC%B9%98)|
|**연습문제**|||
|수 찾기|[링크](boj.kr/1920)|[링크](https://github.com/rhs0266/FastCampus/tree/main/%EA%B0%95%EC%9D%98%20%EC%9E%90%EB%A3%8C/02-%EC%95%8C%EA%B3%A0%EB%A6%AC%EC%A6%98/05~06-%EC%9D%B4%EB%B6%84%20%ED%83%90%EC%83%89/%EB%AC%B8%EC%A0%9C%EB%B3%84%20%EC%BD%94%EB%93%9C/1920-%EC%88%98%20%EC%B0%BE%EA%B8%B0)|
|듣보잡|[링크](boj.kr/1764)|[링크](https://github.com/rhs0266/FastCampus/tree/main/%EA%B0%95%EC%9D%98%20%EC%9E%90%EB%A3%8C/02-%EC%95%8C%EA%B3%A0%EB%A6%AC%EC%A6%98/05~06-%EC%9D%B4%EB%B6%84%20%ED%83%90%EC%83%89/%EB%AC%B8%EC%A0%9C%EB%B3%84%20%EC%BD%94%EB%93%9C/1764-%EB%93%A3%EB%B3%B4%EC%9E%A1)|
|두 수의 합|[링크](boj.kr/3273)|[링크](https://github.com/rhs0266/FastCampus/tree/main/%EA%B0%95%EC%9D%98%20%EC%9E%90%EB%A3%8C/02-%EC%95%8C%EA%B3%A0%EB%A6%AC%EC%A6%98/05~06-%EC%9D%B4%EB%B6%84%20%ED%83%90%EC%83%89/%EB%AC%B8%EC%A0%9C%EB%B3%84%20%EC%BD%94%EB%93%9C/3273-%EB%91%90%20%EC%88%98%EC%9D%98%20%ED%95%A9)|
|숫자 카드 2|[링크](boj.kr/10816)|[링크](https://github.com/rhs0266/FastCampus/tree/main/%EA%B0%95%EC%9D%98%20%EC%9E%90%EB%A3%8C/02-%EC%95%8C%EA%B3%A0%EB%A6%AC%EC%A6%98/05~06-%EC%9D%B4%EB%B6%84%20%ED%83%90%EC%83%89/%EB%AC%B8%EC%A0%9C%EB%B3%84%20%EC%BD%94%EB%93%9C/10816-%EC%88%AB%EC%9E%90%20%EC%B9%B4%EB%93%9C%202)|
|랜선 자르기|[링크](boj.kr/1654)|[링크](https://github.com/rhs0266/FastCampus/tree/main/%EA%B0%95%EC%9D%98%20%EC%9E%90%EB%A3%8C/02-%EC%95%8C%EA%B3%A0%EB%A6%AC%EC%A6%98/05~06-%EC%9D%B4%EB%B6%84%20%ED%83%90%EC%83%89/%EB%AC%B8%EC%A0%9C%EB%B3%84%20%EC%BD%94%EB%93%9C/1654-%EB%9E%9C%EC%84%A0%20%EC%9E%90%EB%A5%B4%EA%B8%B0)|
|예산|[링크](boj.kr/2512)|[링크](https://github.com/rhs0266/FastCampus/tree/main/%EA%B0%95%EC%9D%98%20%EC%9E%90%EB%A3%8C/02-%EC%95%8C%EA%B3%A0%EB%A6%AC%EC%A6%98/05~06-%EC%9D%B4%EB%B6%84%20%ED%83%90%EC%83%89/%EB%AC%B8%EC%A0%9C%EB%B3%84%20%EC%BD%94%EB%93%9C/2512-%EC%98%88%EC%82%B0)|
|기타 레슨|[링크](boj.kr/2343)|[링크](https://github.com/rhs0266/FastCampus/tree/main/%EA%B0%95%EC%9D%98%20%EC%9E%90%EB%A3%8C/02-%EC%95%8C%EA%B3%A0%EB%A6%AC%EC%A6%98/05~06-%EC%9D%B4%EB%B6%84%20%ED%83%90%EC%83%89/%EB%AC%B8%EC%A0%9C%EB%B3%84%20%EC%BD%94%EB%93%9C/2343-%EA%B8%B0%ED%83%80%20%EB%A0%88%EC%8A%A8)|
|용돈 관리|[링크](boj.kr/6236)|[링크](https://github.com/rhs0266/FastCampus/tree/main/%EA%B0%95%EC%9D%98%20%EC%9E%90%EB%A3%8C/02-%EC%95%8C%EA%B3%A0%EB%A6%AC%EC%A6%98/05~06-%EC%9D%B4%EB%B6%84%20%ED%83%90%EC%83%89/%EB%AC%B8%EC%A0%9C%EB%B3%84%20%EC%BD%94%EB%93%9C/6236-%EC%9A%A9%EB%8F%88%20%EA%B4%80%EB%A6%AC)|
|이상한 술집|[링크](boj.kr/13702)|[링크](https://github.com/rhs0266/FastCampus/tree/main/%EA%B0%95%EC%9D%98%20%EC%9E%90%EB%A3%8C/02-%EC%95%8C%EA%B3%A0%EB%A6%AC%EC%A6%98/05~06-%EC%9D%B4%EB%B6%84%20%ED%83%90%EC%83%89/%EB%AC%B8%EC%A0%9C%EB%B3%84%20%EC%BD%94%EB%93%9C/13702-%EC%9D%B4%EC%83%81%ED%95%9C%20%EC%88%A0%EC%A7%91)|
|어두운 굴다리|[링크](boj.kr/17266)|[링크](https://github.com/rhs0266/FastCampus/tree/main/%EA%B0%95%EC%9D%98%20%EC%9E%90%EB%A3%8C/02-%EC%95%8C%EA%B3%A0%EB%A6%AC%EC%A6%98/05~06-%EC%9D%B4%EB%B6%84%20%ED%83%90%EC%83%89/%EB%AC%B8%EC%A0%9C%EB%B3%84%20%EC%BD%94%EB%93%9C/17266-%EC%96%B4%EB%91%90%EC%9A%B4%20%EA%B5%B4%EB%8B%A4%EB%A6%AC)|
|K번째 수|[링크](boj.kr/1300)|[링크](https://github.com/rhs0266/FastCampus/tree/main/%EA%B0%95%EC%9D%98%20%EC%9E%90%EB%A3%8C/02-%EC%95%8C%EA%B3%A0%EB%A6%AC%EC%A6%98/05~06-%EC%9D%B4%EB%B6%84%20%ED%83%90%EC%83%89/%EB%AC%B8%EC%A0%9C%EB%B3%84%20%EC%BD%94%EB%93%9C/1300-K%20%EB%B2%88%EC%A7%B8%20%EC%88%98)|
|날카로운 눈|[링크](boj.kr/1637)|[링크](https://github.com/rhs0266/FastCampus/tree/main/%EA%B0%95%EC%9D%98%20%EC%9E%90%EB%A3%8C/02-%EC%95%8C%EA%B3%A0%EB%A6%AC%EC%A6%98/05~06-%EC%9D%B4%EB%B6%84%20%ED%83%90%EC%83%89/%EB%AC%B8%EC%A0%9C%EB%B3%84%20%EC%BD%94%EB%93%9C/1637-%EB%82%A0%EC%B9%B4%EB%A1%9C%EC%9A%B4%20%EB%88%88)|
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
|문제 이름|문제 링크|답안 코드 링크|
|---|---|---|
|부분 합|[링크](boj.kr/1806)|[링크](https://github.com/rhs0266/FastCampus/tree/main/%EA%B0%95%EC%9D%98%20%EC%9E%90%EB%A3%8C/02-%EC%95%8C%EA%B3%A0%EB%A6%AC%EC%A6%98/07~08-%EB%91%90%20%ED%8F%AC%EC%9D%B8%ED%84%B0/%EB%AC%B8%EC%A0%9C%EB%B3%84%20%EC%BD%94%EB%93%9C/1806-%EB%B6%80%EB%B6%84%20%ED%95%A9)|
|두 용액|[링크](boj.kr/2470)|[링크](https://github.com/rhs0266/FastCampus/tree/main/%EA%B0%95%EC%9D%98%20%EC%9E%90%EB%A3%8C/02-%EC%95%8C%EA%B3%A0%EB%A6%AC%EC%A6%98/07~08-%EB%91%90%20%ED%8F%AC%EC%9D%B8%ED%84%B0/%EB%AC%B8%EC%A0%9C%EB%B3%84%20%EC%BD%94%EB%93%9C/2470-%EB%91%90%20%EC%9A%A9%EC%95%A1)|
|List of Unique Numbers|[링크](boj.kr/13144)|[링크](https://github.com/rhs0266/FastCampus/tree/main/%EA%B0%95%EC%9D%98%20%EC%9E%90%EB%A3%8C/02-%EC%95%8C%EA%B3%A0%EB%A6%AC%EC%A6%98/07~08-%EB%91%90%20%ED%8F%AC%EC%9D%B8%ED%84%B0/%EB%AC%B8%EC%A0%9C%EB%B3%84%20%EC%BD%94%EB%93%9C/13144-List%20of%20Unique%20Numbers)|
|좋다|[링크](boj.kr/1253)|[링크](https://github.com/rhs0266/FastCampus/tree/main/%EA%B0%95%EC%9D%98%20%EC%9E%90%EB%A3%8C/02-%EC%95%8C%EA%B3%A0%EB%A6%AC%EC%A6%98/07~08-%EB%91%90%20%ED%8F%AC%EC%9D%B8%ED%84%B0/%EB%AC%B8%EC%A0%9C%EB%B3%84%20%EC%BD%94%EB%93%9C/1253-%EC%A2%8B%EB%8B%A4)|
|고냥이|[링크](boj.kr/16472)|[링크](https://github.com/rhs0266/FastCampus/tree/main/%EA%B0%95%EC%9D%98%20%EC%9E%90%EB%A3%8C/02-%EC%95%8C%EA%B3%A0%EB%A6%AC%EC%A6%98/07~08-%EB%91%90%20%ED%8F%AC%EC%9D%B8%ED%84%B0/%EB%AC%B8%EC%A0%9C%EB%B3%84%20%EC%BD%94%EB%93%9C/16472-%EA%B3%A0%EB%83%A5%EC%9D%B4)|
|**연습문제**|||
|수들의 합 2|[링크](boj.kr/2003)|[링크]|
|수열|[링크](boj.kr/2559)|[링크](https://github.com/rhs0266/FastCampus/tree/main/%EA%B0%95%EC%9D%98%20%EC%9E%90%EB%A3%8C/02-%EC%95%8C%EA%B3%A0%EB%A6%AC%EC%A6%98/07~08-%EB%91%90%20%ED%8F%AC%EC%9D%B8%ED%84%B0/%EB%AC%B8%EC%A0%9C%EB%B3%84%20%EC%BD%94%EB%93%9C/2559-%EC%88%98%EC%97%B4)|
|귀여운 라이언|[링크](boj.kr/15565)|[링크]|
|배열 합치기|[링크](boj.kr/11728)|[링크](https://github.com/rhs0266/FastCampus/tree/main/%EA%B0%95%EC%9D%98%20%EC%9E%90%EB%A3%8C/02-%EC%95%8C%EA%B3%A0%EB%A6%AC%EC%A6%98/07~08-%EB%91%90%20%ED%8F%AC%EC%9D%B8%ED%84%B0/%EB%AC%B8%EC%A0%9C%EB%B3%84%20%EC%BD%94%EB%93%9C/11728-%EB%B0%B0%EC%97%B4%20%ED%95%A9%EC%B9%98%EA%B8%B0)|
|수 고르기|[링크](boj.kr/2230)|[링크]|
|두 수의 합|[링크](boj.kr/3273)|[링크](https://github.com/rhs0266/FastCampus/tree/main/%EA%B0%95%EC%9D%98%20%EC%9E%90%EB%A3%8C/02-%EC%95%8C%EA%B3%A0%EB%A6%AC%EC%A6%98/07~08-%EB%91%90%20%ED%8F%AC%EC%9D%B8%ED%84%B0/%EB%AC%B8%EC%A0%9C%EB%B3%84%20%EC%BD%94%EB%93%9C/3273-%EB%91%90%20%EC%88%98%EC%9D%98%20%ED%95%A9)|
|세 용액|[링크](boj.kr/2473)|[링크](https://github.com/rhs0266/FastCampus/tree/main/%EA%B0%95%EC%9D%98%20%EC%9E%90%EB%A3%8C/02-%EC%95%8C%EA%B3%A0%EB%A6%AC%EC%A6%98/07~08-%EB%91%90%20%ED%8F%AC%EC%9D%B8%ED%84%B0/%EB%AC%B8%EC%A0%9C%EB%B3%84%20%EC%BD%94%EB%93%9C/2473-%EC%84%B8%20%EC%9A%A9%EC%95%A1)|
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
|문제 이름|문제 링크|답안 코드 링크|
|---|---|---|
|DFS와 BFS|[링크](boj.kr/1260)|[링크]()|
|단지 번호 붙이기|[링크](boj.kr/2667)|[링크]()|
|물통|[링크](boj.kr/2251)|[링크]()|
|연구소|[링크](boj.kr/14502)|[링크]()|
|**연습문제**|||
|유기농 배추|[링크](boj.kr/1012)|[링크]()|
|연결 요소의 개수|[링크](boj.kr/11724)|[링크]()|
|섬의 개수|[링크](boj.kr/4963)|[링크]()|
||[링크](boj.kr/3184)|[링크]()|
|바이러스|[링크](boj.kr/2606)|[링크]()|
|경로 찾기|[링크](boj.kr/11403)|[링크]()|
|트리의 부모 찾기|[링크](boj.kr/11725)|[링크]()|
14 changes: 14 additions & 0 deletions 강의 자료/02-알고리즘/12-트리/문제 리스트.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
|문제 이름|문제 링크|답안 코드 링크|
|---|---|---|
|트리의 부모 찾기|[링크](boj.kr/11725)|[링크]()|
|트리|[링크](boj.kr/1068)|[링크]()|
|**연습문제**|||
|트리 순회|[링크](boj.kr/1991)|[링크]()|
|이진 검색 트리|[링크](boj.kr/5639)|[링크]()|
|나무 탈출|[링크](boj.kr/15900)|[링크]()|
|부동산 다툼|[링크](boj.kr/20364)|[링크]()|
|가장 가까운 공통 조상|[링크](boj.kr/3584)|[링크]()|
|노드 사이의 거리|[링크](boj.kr/1240)|[링크]()|
|사촌|[링크](boj.kr/9489)|[링크]()|
|트리와 쿼리|[링크](boj.kr/15681)|[링크]()|
|회사 문화 1|[링크](boj.kr/14267)|[링크]()|
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
|문제 이름|문제 링크|답안 코드 링크|
|---|---|---|
||[링크](boj.kr/2252)|[링크]()|
||[링크](boj.kr/1005)|[링크]()|
|**연습문제**|||
||[링크](boj.kr/1516)|[링크]()|
||[링크](boj.kr/2056)|[링크]()|
||[링크](boj.kr/2637)|[링크]()|
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
|문제 이름|문제 링크|답안 코드 링크|
|---|---|---|
||[링크](boj.kr/1916)|[링크]()|
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
|문제 이름|문제 링크|답안 코드 링크|
|---|---|---|
||[링크](boj.kr/9095)|[링크]()|
||[링크](boj.kr/11726)|[링크]()|
||[링크](boj.kr/2579)|[링크]()|
||[링크](boj.kr/11057)|[링크]()|
||[링크](boj.kr/)|[링크]()|
|**연습 문제**|||
||[링크](boj.kr/1003)|[링크]()|
||[링크](boj.kr/10870)|[링크]()|
||[링크](boj.kr/15988)|[링크]()|
||[링크](boj.kr/15991)|[링크]()|
||[링크](boj.kr/11052)|[링크]()|
||[링크](boj.kr/2011)|[링크]()|
||[링크](boj.kr/1149)|[링크]()|
||[링크](boj.kr/2156)|[링크]()|
||[링크](boj.kr/2193)|[링크]()|
||[링크](boj.kr/9465)|[링크]()|
||[링크](boj.kr/1309)|[링크]()|
||[링크](boj.kr/2688)|[링크]()|
||[링크](boj.kr/1562)|[링크]()|
||[링크](boj.kr/2096)|[링크]()|
||[링크](boj.kr/5557)|[링크]()|
||[링크](boj.kr/1495)|[링크]()|
||[링크](boj.kr/9095)|[링크]()|
||[링크](boj.kr/15990)|[링크]()|
40 changes: 40 additions & 0 deletions 강의 자료/02-알고리즘/autoindex.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
import os
from lxml import html
import requests

def get_dir_list(path):
return [p for p in os.listdir(path) if os.path.isdir(p)]

def get_file_list(path):
return [p for p in os.listdir(path) if os.path.isfile(p)]

def get_number(str):
res = ''.join(list(filter(lambda x: '0'<=x<='9', str)))
if res:
return int(res)
return None

for chapter in get_dir_list('./'):
md_path = os.path.join(chapter, '문제 리스트.md')
new_md = []
with open(md_path, "r") as f:
for line in f.readlines():
line = line.strip()
row = line.split('|')
number = get_number(row[2])
if number:
res = requests.get('http://boj.kr/' + str(number))
res.raise_for_status()
res.encoding = 'UTF-8'
tree = html.fromstring(res.text)
title = tree.xpath('//title/text()')[0].split(' ', 1)[1]
row[1] = title
code = get_code_dir()
if code:
row[3] = f'[링크]({code})'
else:
row[3] = f'[링크]'
new_md.append('|'.join(row))

with open(md_path, "w") as f:
f.write('\n'.join(new_md))

0 comments on commit d8de809

Please sign in to comment.