Skip to content

Instantly share code, notes, and snippets.

@modos
Created March 12, 2024 17:42
Show Gist options
  • Save modos/b4e5c7054c01dbb0550bea37bf794176 to your computer and use it in GitHub Desktop.
Save modos/b4e5c7054c01dbb0550bea37bf794176 to your computer and use it in GitHub Desktop.
روبه‌رو در مترو
row1 = input().split()
row2 = input().split()
pairs = 0
for i in range(8):
if row1[i] == '1' and row2[i] == '1':
pairs += 1
print(pairs)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment