Notice
Recent Posts
Recent Comments
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- PYTHON
- 캐치카페
- dacon
- 프로그래머스
- 데이콘
- 편스토랑
- Baekjoon
- leetcode
- SW Expert Academy
- 파이썬
- gs25
- Git
- Kaggle
- ubuntu
- ChatGPT
- 금융문자분석경진대회
- programmers
- 코로나19
- Real or Not? NLP with Disaster Tweets
- 맥북
- 우분투
- Docker
- 백준
- github
- AI 경진대회
- 편스토랑 우승상품
- 더현대서울 맛집
- 프로그래머스 파이썬
- 자연어처리
- hackerrank
Archives
- Today
- Total
솜씨좋은장씨
[BaekJoon] 6603번 : 로또 (Python) 본문
728x90
반응형
1일 1문제! 87일차!
오늘의 문제는 백준의 로또 입니다.
Solution
from itertools import combinations
while True:
input_command = input()
input_command_list = list(map(int, input_command.split()))
if input_command[0] == '0':
break
for comb in combinations(input_command_list[1:], 6):
print(' '.join(map(str, comb)))
print(' ')
'Programming > 코딩 1일 1문제' 카테고리의 다른 글
[BaekJoon] 10824번 : 네 수 (Python) (0) | 2020.05.05 |
---|---|
[BaekJoon] 1629번 : 곱셈 (Python) (0) | 2020.05.04 |
[Programmers] 최댓값과 최솟값 (Python) (0) | 2020.05.02 |
[BaekJoon] 2089번 : -2진수 (Python) (0) | 2020.05.01 |
[Programmers] 124 나라의 숫자 (Python) (0) | 2020.04.30 |
Comments