Владислав Рябыкин, 327 группа MaxSubseq 693 | Лычева Екатерина Олеговна 321 MaxSubseq 596 | ||||
---|---|---|---|---|---|
n | 1 | l = 1 | n | 1 | m = 1 |
2 | max_l = 1 | 2 | cur = 1 | ||
3 | prev = int(input()) | 3 | x = int(input()) | ||
4 | while (x := int(input())): | 4 | while (y := int(input())): | ||
5 | if x >= prev: | 5 | if y >= x: | ||
6 | l += 1 | 6 | cur += 1 | ||
7 | else: | 7 | else: | ||
t | 8 | max_l = max(l, max_l) | t | 8 | m = max(m, cur) |
9 | l = 1 | 9 | cur = 1 | ||
10 | prev = x | 10 | x = y | ||
11 | max_l = max(l, max_l) | 11 | m = max(m, cur) | ||
12 | print(max_l) | 12 | print(m) |
Legends | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
|