Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Python 3.7
- # 1 2 3 4 5 6 7 8
- # 1 . o . . . . . .
- # 2 . . o . . . . .
- # 3 . . . o . . . o
- # 4 . . . . o . o .
- # 5 . . . . . X . . X -> bishop position
- # 6 . . . . o . o . o -> available positions
- # 7 . . . o . . . o
- # 8 . . o . . . . .
- T = int(input())
- for t in range(T):
- iRow, iCol, fRow, fCol = map(int, input().split())
- if abs(iRow-fRow) == abs(iCol-fCol):
- print('Yes')
- else:
- print('No')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement