0316 - Min Cols 2: 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

4 April 2023

  • curprev 17:5817:58, 4 April 2023Andor Giulia talk contribs 769 bytes +27 No edit summary undo
  • curprev 17:5717:57, 4 April 2023Andor Giulia talk contribs 742 bytes +742 Pagină nouă: == Rezolvare == # citirea datelor de intrare m, n = map(int, input().split()) a = [] for i in range(m): row = list(map(int, input().split())) a.append(row) # determinarea valorii minime din matrice min_val = 10000 for i in range(m): for j in range(n): if a[i][j] < min_val: min_val = a[i][j] # înlocuirea elementelor de pe coloanele care conțin valoarea minimă cu valoarea minimă for j in range(n): col_min = 10000 for i in range(m):...