0772 - Max Ap: 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:3618:36, 3 April 2023MiclausIoana talk contribs 1,092 bytes +1,092 Pagină nouă: == Rezolvare == <syntaxhighlight lang="python" line="1"> n, m = map(int, input().split()) # citim n si m de la tastatura matrix = [] # initializam matricea for i in range(n): row = list(map(int, input().split())) # citim o linie a matricei matrix.append(row) # adaugam linia la matrice counts = {} # initializam un dictionar pentru a numara aparitiile elementelor max_count = 0 # initializam numarul maxim de aparitii la 0 for row in matrix: for elem in row:...