1
2
3
4
5
6
7
8
9
10
11
12
13
|
def sol(nums1,nums2):
for i in nums1:
for j in nums2:
if i+j not in nums1 and i+j not in nums2 :
ans1,ans2=i,j
print(ans1,ans2)
n1=int(input())
nums1=list(map(int, input().split()))
n2=int(input())
nums2=list(map(int, input().split()))
sol(nums1,nums2)
|
cs |
반응형
'python-algorithm' 카테고리의 다른 글
백준 24927 Is It Even? (0) | 2022.05.26 |
---|---|
codeforces 978A - Remove Duplicates (0) | 2022.05.26 |
codeforces 118A - String Task (0) | 2022.05.25 |
codeforces 1A - Theatre Square (0) | 2022.05.25 |
codeforces 231A - Team (0) | 2022.05.25 |
댓글