2807 - Matrice 10: 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.

22 April 2023

3 April 2023

  • curprev 18:3818:38, 3 April 2023MiclausIoana talk contribs 919 bytes +919 Pagină nouă: == Rezolvare == <syntaxhighlight lang="python" line="1"> # citim dimensiunile matricei n, m = map(int, input().split()) # citim elementele matricei matrix = [] for i in range(n): row = list(map(int, input().split())) matrix.append(row) # găsim minimul din prima și ultima coloană min_first_col = matrix[0][0] min_last_col = matrix[0][-1] for i in range(n): if matrix[i][0] < min_first_col: min_first_col = matrix[i][0] if matrix[i][-1] < min_last_col...