[백준-11728] 배열 합치기 / Python
📚 Problem Solving/Baekjoon
https://www.acmicpc.net/problem/11728
11728번: 배열 합치기
첫째 줄에 배열 A의 크기 N, 배열 B의 크기 M이 주어진다. (1 ≤ N, M ≤ 1,000,000) 둘째 줄에는 배열 A의 내용이, 셋째 줄에는 배열 B의 내용이 주어진다. 배열에 들어있는 수는 절댓값이 109보다 작거
www.acmicpc.net
import sys
n, m = map(int, sys.stdin.readline().split())
a = list(map(int, sys.stdin.readline().split()))
b = list(map(int, sys.stdin.readline().split()))
temp = sorted(a + b)
print(*temp)
해설
간단한 정렬 문제!
'📚 Problem Solving > Baekjoon' 카테고리의 다른 글
[백준-2343] 기타 레슨 / Python (0) | 2021.05.18 |
---|---|
[백준-2822] 점수 계산 / Python (0) | 2021.05.18 |
[백준-11656] 접미사 배열 / Python (0) | 2021.05.18 |
[백준-10825] 국영수 / Python (0) | 2021.05.17 |
[백준-10610] 30 / Python (0) | 2021.05.17 |