https://www.acmicpc.net/problem/2750
list=[]
N = int(input())
for i in range(N):
number = int(input())
list.append(number)
# print(list)
list2 = sorted(list)
for i in list2:
print(i)
nums = int(input())
num = []
for i in range(nums):
num.append(int(input()))
num.sort()
for i in range(len(num)):
print(num[i])
리스트의 요소를 한 줄마다 출력하기:
#list2 = [1,2,3,4]
for i in list2:
print(i)
결과:
1
2
3
4