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 | 29 | 30 | 31 |
Tags
- 생활코딩
- String
- BASIC
- 따라하며 배우는 C언어
- web
- Algospot
- JavaScript
- 인프런
- 종만북
- greedy
- sorting
- Python
- DP
- 따배씨
- Cleancode
- dfs
- Algorithm
- Math
- BOJ
- php
- graph
- programmers
- udemy
- server
- BFS
- C언어
- 백준
- 정수론
- 따라하면서 배우는 C언어
- C
Archives
- Today
- Total
몽상실현개발주의
[BOJ] 11728 / 배열 합치기 / Python 파이썬 본문
[BOJ] 11728 / 배열 합치기 / Python 파이썬
https://www.acmicpc.net/problem/11728
풀이
주어지는 두 배열을 합쳐 정렬하는 문제이다.
파이썬에서 제공되는 sort() method 로 쉽게 해결하였다.
N, M = map(int, input().split())
A = list(map(int, input().split()))
B = list(map(int, input().split()))
res = A+B
res.sort()
print(" ".join(map(str, res)))
'Algorithm PS > BOJ' 카테고리의 다른 글
[BOJ] 1780 / 종이의 개수 / Python 파이썬 (0) | 2021.06.22 |
---|---|
[BOJ] 1992 / 쿼드트리 / Python 파이썬 (0) | 2021.06.21 |
[BOJ] 10816 / 숫자 카드 2 / Python 파이썬 (0) | 2021.06.19 |
[BOJ] 10815 / 숫자 카드 / Python 파이썬 (0) | 2021.06.19 |
[BOJ] 2110 / 공유기 설치 / Python 파이썬 (0) | 2021.06.18 |
Comments