add to gothib
This commit is contained in:
commit
523f45b46a
28 changed files with 419 additions and 0 deletions
17
enraged.py
Normal file
17
enraged.py
Normal file
|
@ -0,0 +1,17 @@
|
|||
columns = int(input(""))
|
||||
|
||||
murders_acceptable = 2
|
||||
|
||||
row1 = input("")
|
||||
row2 = input("")
|
||||
|
||||
for cell1, cell2 in zip(row1, row2):
|
||||
if cell1 == "S" and cell2 == "S":
|
||||
murders_acceptable -= 1
|
||||
if murders_acceptable == -1:
|
||||
break
|
||||
|
||||
if murders_acceptable == -1:
|
||||
print("NO")
|
||||
else:
|
||||
print("YES")
|
Loading…
Add table
Add a link
Reference in a new issue