baekjoon 20250206

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

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)