2731 2023. 01. 19 21:42:28 kristof Szomjas állatok python3 Accepted 100/100 65ms 14612 KiB
N = int(input())
allatok = list(map(int, input().strip().split()))

allatokMost = []

for i in allatok:
    allatokMost = list(filter(lambda x: x>=i, allatokMost))
    allatokMost.append(i)

print(len(allatokMost))
Subtask Sum Test Verdict Time Memory
subtask1 0/0
1 Accepted 17ms 11100 KiB
2 Accepted 17ms 11424 KiB
subtask2 5/5
3 Accepted 16ms 11364 KiB
4 Accepted 16ms 11584 KiB
5 Accepted 17ms 11896 KiB
subtask3 20/20
6 Accepted 17ms 12204 KiB
7 Accepted 17ms 12760 KiB
8 Accepted 23ms 12556 KiB
9 Accepted 65ms 13040 KiB
10 Accepted 39ms 13352 KiB
subtask4 25/25
11 Accepted 17ms 13068 KiB
12 Accepted 17ms 13040 KiB
13 Accepted 17ms 13064 KiB
14 Accepted 17ms 13204 KiB
15 Accepted 17ms 13464 KiB
subtask5 20/20
16 Accepted 17ms 13152 KiB
17 Accepted 17ms 13660 KiB
18 Accepted 17ms 13868 KiB
19 Accepted 18ms 14156 KiB
20 Accepted 17ms 14080 KiB
subtask6 30/30
21 Accepted 17ms 14008 KiB
22 Accepted 17ms 14292 KiB
23 Accepted 17ms 14376 KiB
24 Accepted 65ms 14448 KiB
25 Accepted 18ms 14612 KiB
26 Accepted 17ms 14600 KiB