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
- 코드업
- 스프링
- web
- memory
- 공부
- 파이썬
- 정렬
- 기초100제
- C++
- 프로그래머스
- 자료구조
- CPU 스케줄링
- 알고리즘
- OS
- 협업
- Operating System
- Redux
- 백준
- 리덕스장바구니
- 타입스크립트
- react
- js to ts
- 일상
- Java
- codeup
- 분할메모리할당
- error
- react-redux
- Spring
- 토이프로젝트
Archives
- Today
- Total
목록2798 (1)
감자튀김 공장🍟
[백준/2798] 블랙잭 (with 파이썬)
✔ 문제 ✔ 풀이 import sys from itertools import combinations input = sys.stdin.readline n, m = map(int, input().split()) numbers = list(map(int, input().split())) combi = list(combinations(numbers, 3)) sum_combi = [] for i in combi: sum_combi.append(i[0] + i[1] + i[2]) max_n = 0 for i in sum_combi: if max_n < i
Algorithm/BOJ
2022. 11. 25. 14:37