Buggy python submission (verdict: Runtime Error):
N = int(input())
P_lis = list(map(int,input().split()))
count = 0
min_P = P_lis[0]
for p in P_list:
  if p <= min_P:
    min_P = p
    count += 1

print(count)

Fixed submission:
N = int(input())
P_lis = list(map(int, input().split()))
 
dummy = 2*10**5
answer = 0
 
for p in P_lis:
  if p <= dummy:
    answer += 1
    dummy = p
print(answer)

Buggy python submission (verdict: Time Limit Exceeded):
N = int(input())
P_lis = list(map(int,input().split()))
 
count = 0
for i in range(N):
  lis = P_lis[0:i+1]
  if lis[i] == min(lis):
    count += 1
print(count)

Fixed submission:
N = int(input())
P_lis = list(map(int, input().split()))
 
dummy = 2*10**5
answer = 0
 
for p in P_lis:
  if p <= dummy:
    answer += 1
    dummy = p
print(answer)

Buggy python submission (verdict: Time Limit Exceeded):
import numpy as np
N = int(input())
P_lis = np.array(list(map(int,input().split())))

count = 0
for i in range(N):
  lis = P_lis[0:i+1]
  lis = np.sign(lis - lis[i])
  if -1 in np.sign(lis[:-1]):
    count += 1
print(N-count)

Fixed submission:
N = int(input())
P_lis = list(map(int, input().split()))
 
dummy = 2*10**5
answer = 0
 
for p in P_lis:
  if p <= dummy:
    answer += 1
    dummy = p
print(answer)

Buggy python submission (verdict: Time Limit Exceeded):
import numpy as np
N = int(input())
P_lis = np.array(list(map(int,input().split())))
 
count = 0
for i in range(N):
  for j in range(i):
    if P_lis[i] >= P_lis[j]:
      count += 1
      break
print(N - count)

Fixed submission:
N = int(input())
P_lis = list(map(int, input().split()))
 
dummy = 2*10**5
answer = 0
 
for p in P_lis:
  if p <= dummy:
    answer += 1
    dummy = p
print(answer)

Buggy python submission (verdict: Runtime Error):
import numpy as np
N = int(input())
P_lis = list(map(int,input().split()))
 
count = 0
for i in range(N):
  lis = P_lis[0:i+1]
  lis = lis - lis[i]
  if -1 in np.sign(lis):
    count += 1
print(count)

Fixed submission:
N = int(input())
P_lis = list(map(int, input().split()))
 
dummy = 2*10**5
answer = 0
 
for p in P_lis:
  if p <= dummy:
    answer += 1
    dummy = p
print(answer)

Buggy python submission (verdict: Time Limit Exceeded):
N = int(input())
P_lis = list(map(int,input().split()))
 
count = 0
for i in range(N):
  lis = P_lis[0:i+1]
  for j in range(i):
    if lis[i] >= lis[j]:
      count += 1
      break
print(N - count)

Fixed submission:
N = int(input())
P_lis = list(map(int, input().split()))
 
dummy = 2*10**5
answer = 0
 
for p in P_lis:
  if p <= dummy:
    answer += 1
    dummy = p
print(answer)

Buggy python submission (verdict: Time Limit Exceeded):
N = int(input())
P_lis = list(map(int,input().split()))
 
count = 0
for i in range(N):
  for j in range(i):
    if P_lis[i] >= P_lis[j]:
      count += 1
      break
print(N - count)

Fixed submission:
N = int(input())
P_lis = list(map(int, input().split()))
 
dummy = 2*10**5
answer = 0
 
for p in P_lis:
  if p <= dummy:
    answer += 1
    dummy = p
print(answer)

Buggy python submission (verdict: Time Limit Exceeded):
N = int(input())
P_lis = list(map(int,input().split()))

count = 0
for i in range(N):
  check_lis = []
  for j in range(i):
    if P_lis[i] <= P_lis[j]:
      check_lis.append(1)
    else:
      check_lis.append(0)
  if all(check_lis) == 1:
    count += 1

print(count)

Fixed submission:
N = int(input())
P_lis = list(map(int, input().split()))
 
dummy = 2*10**5
answer = 0
 
for p in P_lis:
  if p <= dummy:
    answer += 1
    dummy = p
print(answer)