add to gothib
This commit is contained in:
commit
523f45b46a
28 changed files with 419 additions and 0 deletions
11
rhyme.py
Normal file
11
rhyme.py
Normal file
|
@ -0,0 +1,11 @@
|
|||
for i in range(int(input(""))):
|
||||
x, y = input("").split(" ")
|
||||
|
||||
if x.endswith("17") or y.endswith("17"):
|
||||
print("NO")
|
||||
|
||||
elif (x.endswith("7") and y.endswith("11")) or (x.endswith("11") and y.endswith("7")):
|
||||
print("YES")
|
||||
|
||||
else:
|
||||
print("NO")
|
Loading…
Add table
Add a link
Reference in a new issue