Untitled

mail@pastecode.io avatar
unknown
python
2 years ago
289 B
13
Indexable
Never
size = int(input())
limit = 2 * size
left, right = 0, 0
for i in range(limit):
    if i >= limit // 2:
        right += int(input())
    else:
        left += int(input())
if left == right:
    print(f'Yes, sum = {left}')
else:
    print(f'No, diff = {abs(left - right)}')