0777 - Cnt Coloane: Revision history

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

19 April 2023

3 April 2023

  • curprev 18:4518:45, 3 April 2023MiclausIoana talk contribs 344 bytes +344 Pagină nouă: == Rezolvare == <syntaxhighlight lang="python" line="1"> n, m = map(int, input().split()) matrix = [] for i in range(n): row = list(map(int, input().split())) matrix.append(row) count = 0 for j in range(m): column = [matrix[i][j] for i in range(n)] if len(set(column)) == n: count += 1 print(count) </syntaxhighlight>