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