Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- number = int(input())
- total_left = 0
- total_right = 0
- for i in range(1, number + 1):
- num1 = int(input())
- num2 = int(input())
- if total_left == total_right:
- print(f"Yes, sum = {total_left}")
- else:
- difference = abs(total_left - total_right)
- print(f"No, diff = {difference}")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement