Submission #4950397


Source Code Expand

Copy
N = int(input())
H = list(map(int, input().split()))

def ok(H, i):
    for j in range(0,i):
        #print(i, j, H[i], H[j])
        if H[i] < H[j]:
            #print("out")
            return 0
    return 1

    
cnt = 1
for i in range(1, N):
    cnt += ok(H, i)

print(cnt)

Submission Info

Submission Time
Task B - Great Ocean View
User showyou41
Language Python3 (3.4.3)
Score 200
Code Size 293 Byte
Status
Exec Time 17 ms
Memory 3060 KB

Test Cases

Set Name Score / Max Score Test Cases
All 200 / 200 sample_01, sample_02, sample_03, testcase_01, testcase_02, testcase_03, testcase_04, testcase_05, testcase_06, testcase_07, testcase_08, testcase_09
Sample 0 / 0 sample_01, sample_02, sample_03
Case Name Status Exec Time Memory
sample_01 17 ms 3060 KB
sample_02 17 ms 3060 KB
sample_03 17 ms 3060 KB
testcase_01 17 ms 3060 KB
testcase_02 17 ms 3060 KB
testcase_03 17 ms 2940 KB
testcase_04 17 ms 3060 KB
testcase_05 17 ms 3060 KB
testcase_06 17 ms 3060 KB
testcase_07 17 ms 3060 KB
testcase_08 17 ms 3060 KB
testcase_09 17 ms 2940 KB