You are viewing a single comment's thread. Return to all comments →
Or, you could...
s, n, m = map(int, raw_input().strip().split()) keyboard = sorted(map(int, raw_input().strip().split()), reverse=True) usb = sorted(map(int, raw_input().strip().split())) i = j = 0 ans = -1 for i in keyboard: for j in usb: if i + j > s: break ans = max(ans, i + j) print ans
Seems like cookies are disabled on this browser, please enable them to open this website
Electronics Shop
You are viewing a single comment's thread. Return to all comments →
Or, you could...