Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- nums = int(input())
- sum_one = 0
- sum_two = 0
- for _ in range(0, nums):
- num = int(input())
- sum_one += num
- for _ in range(0, nums):
- num = int(input())
- sum_two += num
- if sum_one == sum_two:
- print(f"Yes, sum = {sum_one}")
- else:
- print(f"No, diff = {abs(sum_one - sum_two)}")
Advertisement
Add Comment
Please, Sign In to add comment