
Untitled
Guest 31 6th Mar, 2025
def count_empty_columns(matrix):
return sum(1 for col in range(8) if all(row[col] == '.' for row in matrix))
def analyze_matrices(matrices):
empty_column_count = sum(1 for matrix in matrices if count_empty_columns(matrix) > 0)
max_empty_columns = max((count_empty_columns(matrix) for matrix in matrices), default=0)
print(f"Liczba macierzy z przynajmniej jedną pustą kolumną: {empty_column_count}")
print(f"Najwięcej pustych kolumn w jednej macierzy: {max_empty_columns}")
To share this paste please copy this url and send to your friends
RAW Paste Data
Recent Pastes
- Untitled
Markup | 6 | 19 hours ago
- Untitled
Markup | 6 | 19 hours ago
- Untitled
Markup | 11 | 1 day ago
- Untitled
Markup | 11 | 1 day ago
- Untitled
Markup | 12 | 1 day ago
- rutorclubwiypaf63caqzlqwtcxqu5w6req6h7bjnvdlm4m7tddiwoyd.onion
Liquid | 7 | 1 day ago
- Продажа редкоземельных металлов и изделий из них.
HTTP | 8 | 1 day ago