Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- Operating System
- error
- 코드업
- 프로그래머스
- OS
- Spring
- Java
- web
- 분할메모리할당
- 자료구조
- react-redux
- 토이프로젝트
- Redux
- 협업
- codeup
- 알고리즘
- 기초100제
- memory
- CPU 스케줄링
- 백준
- js to ts
- 공부
- 파이썬
- 리덕스장바구니
- 정렬
- 타입스크립트
- 일상
- C++
- 스프링
- react
Archives
- Today
- Total
목록15652 (1)
감자튀김 공장🍟
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/bTX43d/btrU0tT4IkH/KfOtS9AAPW183xPXM6n3Kk/img.png)
✔ 문제 ✔ 풀이 👾 내 풀이 (216ms) import sys input = sys.stdin.readline n, m = map(int, input().split()) res = [] def dfs(x): if len(res) == m: print(' '.join(map(str, res))) return for i in range(x, n+1): if i >= x: res.append(i) dfs(i) res.pop() dfs(1) ⭐ 다른 풀이 (176ms) import sys input = sys.stdin.readline n, m = map(int, input().split()) s = [] def dfs(x): if len(s) == m: print(*s) return for i in rang..
Algorithm/BOJ
2022. 12. 30. 20:45