Last active
          May 31, 2020 20:04 
        
      - 
      
- 
        Save andriiburka/2b4e1ebde01d2c8a41fb7777677b78f0 to your computer and use it in GitHub Desktop. 
    0/100
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | 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))) | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
            
Пробвах с какви ли не входове, не мога да разбера защо в джъджа минават само нулевите тестове