Buggy python submission (verdict: Runtime Error):
N = int(input())
list = [int(i) for i in input().split()]

ans = 0
min = 0

for j in rainge(N):
    if (min  >= list[j]):
        abs += 1
        min = list[j]
    else:
        continue

print(ans)


Fixed submission:
N = int(input())
list = [int(i) for i in input().split()]

ans = 0
min = list[0]

for j in range(N):
    if (min  >= list[j]):
        ans += 1
        min = list[j]
    else:
        continue

print(ans)

Buggy python submission (verdict: Time Limit Exceeded):
import copy

N = int(input())
list = [int(i) for i in input().split()]

count = 0

for j in range(N):
    #print(j)
    #print(list)
    #print("j="+str(j))
    list2 = copy.copy(list)
    #print(list2)
    #print(j)
    del list2[j+1:]
    #print(list2)
    #list2 = sorted(list2)
    #print(list[j])
    if(min(list2) >= list[j]):
        count +=1

print(count)


Fixed submission:
N = int(input())
list = [int(i) for i in input().split()]

ans = 0
min = list[0]

for j in range(N):
    if (min  >= list[j]):
        ans += 1
        min = list[j]
    else:
        continue

print(ans)

Buggy python submission (verdict: Time Limit Exceeded):
import copy

N = int(input())
list = [int(i) for i in input().split()]

count = 0

for j in range(N):
    #print(j)
    #print(list)
    #print("j="+str(j))
    list2 = copy.copy(list)
    #print(list2)
    #print(j)
    del list2[j+1:]
    #print(list2)
    list2 = sorted(list2)
    #print(list[j])
    if(list2[0] >= list[j]):
        count +=1

print(count)


Fixed submission:
N = int(input())
list = [int(i) for i in input().split()]

ans = 0
min = list[0]

for j in range(N):
    if (min  >= list[j]):
        ans += 1
        min = list[j]
    else:
        continue

print(ans)

Buggy python submission (verdict: Time Limit Exceeded):
N = int(input())
list = [int(i) for i in input().split()]

count = 0

for j in range(N):
    #print("j="+str(j))
    jj = list[j]
    for k in range(j+1):
        #print("k="+str(k))
        if(list[k] < jj):
            break

        if(k == j):
            count += 1
            break


print(count)


Fixed submission:
N = int(input())
list = [int(i) for i in input().split()]

ans = 0
min = list[0]

for j in range(N):
    if (min  >= list[j]):
        ans += 1
        min = list[j]
    else:
        continue

print(ans)

Buggy python submission (verdict: Time Limit Exceeded):
N = int(input())
list = [int(i) for i in input().split()]

count = 0

for j in range(N):
    #print("j="+str(j))
    for k in range(j+1):
        #print("k="+str(k))
        if(list[k] < list[j]):
            break

        if(k == j):
            count += 1
            break


print(count)


Fixed submission:
N = int(input())
list = [int(i) for i in input().split()]

ans = 0
min = list[0]

for j in range(N):
    if (min  >= list[j]):
        ans += 1
        min = list[j]
    else:
        continue

print(ans)

Buggy python submission (verdict: Time Limit Exceeded):
N = int(input())
list = [int(i) for i in input().split()]

count = 0

for j in range(N):
    #print("j="+str(j))
    for k in range(j+1):
        #print("k="+str(k))
        if (list[k] >= list[j]):
            #print("k > j")
            if(k == j):
                count += 1
                break

            continue
        elif(list[k] < list[j]):
            break

print(count)


Fixed submission:
N = int(input())
list = [int(i) for i in input().split()]

ans = 0
min = list[0]

for j in range(N):
    if (min  >= list[j]):
        ans += 1
        min = list[j]
    else:
        continue

print(ans)