Жан-Юль-Ян Азель, 414 группа (КФ) MaxSubseq 1562 | Исанбеков Дамир 414 КФ MaxSubseq 1354 | ||||
---|---|---|---|---|---|
f | 1 | a = int(input()) | f | 1 | a = int(input()) |
n | 2 | i = 1 | n | 2 | curlen = 1 |
3 | i_max = 1 | 3 | maxlen = 1 | ||
4 | while a != 0: | 4 | while a != 0: | ||
n | 5 | b = a | n | 5 | prev = a |
6 | a = int(input()) | 6 | a = int(input()) | ||
n | 7 | if a >= b: | n | 7 | if a >= prev: |
8 | i += 1 | 8 | curlen += 1 | ||
9 | else: | 9 | else: | ||
t | 10 | i = 1 | t | 10 | curlen = 1 |
11 | if i > i_max: | 11 | if curlen > maxlen: | ||
12 | i_max = i | 12 | maxlen = curlen | ||
13 | print(i_max) | 13 | print(maxlen) |
Legends | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
|