11728번 : 배열 합치기

김민관·2022년 9월 11일

백준_Silver

목록 보기
30/57

문제보기

파이썬

n, m = map(int, input().split())

a = list(map(int, input().split()))
b = list(map(int, input().split()))

for i in b:
    a.append(i)

a.sort()

print(*a)

풀이

  • a, b 각자 리스트로 입력 받고 합친뒤 정렬
profile
게임 개발일지 & IT 소식들 공유

0개의 댓글