# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1154171 | ainunnajib | Po (COCI21_po) | Pypy 3 | 149 ms | 64248 KiB |
n = int(input())
l = list(map(int, input().split()))
cur = 0
ans = 0
for x in l:
if x > cur:
ans += 1
cur = x
print(ans)
Compilation message (stdout)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |