Pls Help me with this code, Why is it not working?
https://www.codechef.com/viewsolution/41880380
1 Like
my code is not accepted please review it
my code is not accepted please see it
cook your dish here
T=int(input())
list1=[]
list2=[]
for i in range (T):
A,B=map(int,input().split())
if A>B:
a=(A-B)
list1.append(a)
else:
b=(B-A)
list2.append(b)
a=max(list1)
b=max(list2)
if a>b:
print(โ1โ,a)
else:
print(โ2โ,b)
Please either format your code or (better!) link to your submission - the forum software has mangled it and it wonโt compile!
Also - what Problem are you trying to solve?
1 Like
Thanks
My Solution is not being accepted. Can please someone tell me whatโs wrong with my code
https://www.codechef.com/viewsolution/48520015