Skip to content

Instantly share code, notes, and snippets.

@andriiburka
Last active May 31, 2020 20:04
Show Gist options
  • Save andriiburka/2b4e1ebde01d2c8a41fb7777677b78f0 to your computer and use it in GitHub Desktop.
Save andriiburka/2b4e1ebde01d2c8a41fb7777677b78f0 to your computer and use it in GitHub Desktop.
0/100
rows, cols = list(map(int, input().split()))
matrix = [input().split() for i in range(rows)]
indices = []
for li in range(len(matrix)):
for i, char in enumerate(matrix[li]):
if len(matrix[li]) == cols:
if i == cols-1:
continue
elif matrix[li][i] == matrix[li][i+1]:
indices.append(i)
print(len(set(indices)))
@andriiburka
Copy link
Author

Пробвах с какви ли не входове, не мога да разбера защо в джъджа минават само нулевите тестове

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment