Commit 893f7f1c authored by Martin Mareš's avatar Martin Mareš
Browse files

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

parent b0d4e249
...@@ -10,9 +10,9 @@ while True: ...@@ -10,9 +10,9 @@ while True:
if n == -1: if n == -1:
break break
if n > m1: if n >= m1:
m1, m2 = n, m1 m1, m2 = n, m1
elif n > m2: elif n >= m2:
m2 = n m2 = n
print(m2) print(m2)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment