My code is not accepted. Please review it

https://www.codechef.com/viewsolution/25680178

You are not checking for others.
This might help----> Code

1 Like

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! :slight_smile:

Also - what Problem are you trying to solve? :slight_smile:

1 Like

It’s showing:wrong solution
https://www.codechef.com/viewsolution/46691814

1 Like

Thanks :slight_smile:

My Solution is not being accepted. Can please someone tell me what’s wrong with my code
https://www.codechef.com/viewsolution/48520015