2825 - Chenar 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

3 April 2023

  • curprev 18:5318:53, 3 April 2023MiclausIoana talk contribs 370 bytes +370 Pagină nouă: == Rezolvare == <syntaxhighlight lang="python" line="1"> n, m = map(int, input().split()) a = [list(map(int, input().split())) for _ in range(n)] x = int(input()) for i in range(n): for j in range(m): if i == 0 or i == n-1 or j == 0 or j == m-1: if a[i][j] == x: print("DA") exit() print("NU") </syntaxhighlight>