Editing 0779 - Vecini Pari
Revision as of 19:26, 3 April 2023 by MiclausIoana (talk | contribs) (Pagină nouă: == Rezolvare == <syntaxhighlight lang="python" line="1"> n, m = map(int, input().split()) matrix = [] for i in range(n): row = list(map(int, input().split())) matrix.append(row) count = 0 for i in range(n): for j in range(m): if i > 0 and matrix[i-1][j] % 2 == 1: # verificăm vecinul de sus continue if i < n-1 and matrix[i+1][j] % 2 == 1: # verificăm vecinul de jos continue if j > 0 and matrix[i][j-1] % 2 == 1:...)
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/0779_-_Vecini_Pari"