My issue
I can’t figure out what’s wrong with my code. Would appreciate help
My code
# cook your dish here
difference = 0
winer = 0
for item in range(int(input())):
x, y = map(int, input().split())
if x > y and (x - y) > difference:
difference = x - y
winer = 1
elif y > x and (y - x) > difference:
difference = y - x
winer = 2
print(difference + winer)
Problem Link: CodeChef: Practical coding for everyone