0804 - Col Egale: 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 19:3419:34, 3 April 2023Andor Giulia talk contribs 399 bytes +399 Pagină nouă: == Rezolvare == <syntaxhighlight lang="python" line="1"> m, n = map(int, input().split()) matrix = [] for i in range(m): row = list(map(int, input().split())) matrix.append(row) found = False for j in range(n): col = [matrix[i][j] for i in range(m)] if len(set(col)) == 1: print(col[0], end=' ') found = True if not found: print("nu exista") </syntaxhighlight>