baekjoon 20260205

This commit is contained in:
songyc macbook 2026-02-06 23:26:01 +09:00
parent 67d9630ecb
commit a540a76389

View File

@ -0,0 +1,5 @@
ans = 1
for _ in range(int(input())) :
a, b = map(int, input().split())
ans = a if b == ans else b if a == ans else ans
print(ans)