1. 하나의 int
n = int(input())
#3
2. 공백으로 구분된 리스트
arr = list(map(int, input().split()))
#40 80 60 - > [40, 80, 60]
3. 줄바꿈으로 구분된 리스트
for i in range(7):
a.append(int(input()))
# 12 -> [12, 77, 38, 41, 53, 92, 85]
# 77
# 38
# 41
# 53
# 92
# 85
4. 줄바꿈으로 구분된 리스트의 리스트
arr = [list(map(int, input().split())) for _ in range(n)]
'Algorithm > 백준 BOJ' 카테고리의 다른 글
[백준] [Python] #3460 이진수 (0) | 2021.09.23 |
---|---|
[백준] [Python] #10809 알파벳 찾기 (0) | 2021.09.23 |
[백준] [Python] #10818 최소,최대 (0) | 2021.09.23 |
[백준] [Python] #2576 홀수 (0) | 2021.09.23 |
[백준] [Python] #5598 카이사르 암호 (0) | 2021.09.22 |
댓글