Run ID:95172
提交时间:2024-10-27 09:23:10
i = int(input()) a = list(map(int,input().split())) c = 0 for _ in range(i-1): if a[_]>a[_+1]: c = c + 1 del(a[_+1]) print(c)