-Code
n, m = map(int, input().split())
box = [i for i in range(n + 1)]
for _ in range(m):
x, y = map(int, input().split())
box[x] = y
for n in box[1:]:
print(n)
'Beakjoon&프로그래머스 > 파이썬' 카테고리의 다른 글
[백준/파이썬] 15296번 Sum Squared Digits Function (0) | 2023.07.05 |
---|---|
[selenium] find_element_by_* (0) | 2023.07.04 |
[백준/파이썬] 24074번 分割 (Split) (0) | 2023.07.03 |
[백준/파이썬] 20978번 共通要素 (Common Elements) (0) | 2023.07.02 |
[백준/파이썬] 4864번 Gold Coins (0) | 2023.07.01 |