-
Notifications
You must be signed in to change notification settings - Fork 0
/
spell-bob.py
33 lines (33 loc) · 864 Bytes
/
spell-bob.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<<<<<<< HEAD
T = int(input())
for _ in range(T):
s = input()
t = input()
cond = False
for i in range(3):
if s[i] == 'o' or t[i] == 'o':
cnt = 0
for j in range(3):
if j != i:
if s[j] == 'b' or t[j] == 'b':
cnt += 1
if cnt == 2:
cond = True
print("yes" if ok else "no");
=======
T = int(input())
for _ in range(T):
s = input()
t = input()
cond = False
for i in range(3):
if s[i] == 'o' or t[i] == 'o':
cnt = 0
for j in range(3):
if j != i:
if s[j] == 'b' or t[j] == 'b':
cnt += 1
if cnt == 2:
cond = True
print("yes" if ok else "no");
>>>>>>> ef391bc2a214f90b5d6d707d9eb9bb54d3269d80