Editing 0778 - MChenar
Revision as of 19:06, 3 April 2023 by MiclausIoana (talk | contribs) (Pagină nouă: == Rezolvare == <syntaxhighlight lang="python" line="1"> n, m = map(int, input().split()) # Inițializăm matricea cu zero-uri matrix = [[0 for j in range(m)] for i in range(n)] # Citim elementele matricei de la tastatură for i in range(n): row = list(map(int, input().split())) for j in range(m): matrix[i][j] = row[j] # Parcurgem chenarul și adăugăm elementele distincte într-un set distinct_elements = set() for j in range(m): distinct_elements.add(...)
Warning: You are editing an out-of-date revision of this page.
If you publish it, any changes made since this revision will be lost.
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
Retrieved from "http://wiki.universitas.ro/wiki/0778_-_MChenar"