Skip to content
Snippets Groups Projects
Commit 893f7f1c authored by Martin Mareš's avatar Martin Mareš
Browse files

posloupnost-max: ošetření duplicit hodnot

parent b0d4e249
Branches
No related tags found
No related merge requests found
......@@ -10,9 +10,9 @@ while True:
if n == -1:
break
if n > m1:
if n >= m1:
m1, m2 = n, m1
elif n > m2:
elif n >= m2:
m2 = n
print(m2)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment