Hell, man. Thanks :) I will read now very carefully.
Read more… (10 words)
I just passed that question and making others now, but anyway cannot understand why this code is not working well
Hi there, Thank you for reply, here is my code
n = int(input())max = 0w, l = 0, 0for i in range(n):p1, p2 = map(int, input().split())if p1 > p2:if max < p1 - p2:max = p1 - p2w = 1l = maxelse:if max < p2 - p1:max = p2 - p1w = 2l = maxprint (w, l)
Hi guys, I am not so exprienced in this kinda things. What kinda inputs there should be? I wrote my program it is working well in my local, but the server shows it is wrong. I am writing in python and taking input with raw_input() and just printing output