728x90
반응형

단순 사칙연산 문제이다.

N, M = map(int, input().split())
h = max(map(int, input().split()))
a = max(map(int, input().split()))
print(h+a)
728x90
반응형

+ Recent posts