Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def touches(a, b):
- return a - b
- numpeople = int(input())
- p = []
- for _ in range(numpeople):
- p.append(map(int, input().split()))
- for i in range(numpeople):
- for j in range(i+1, numpeople):
- if touches(p[i], p[j]):
- print(i,j)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement