Run ID:95177

提交时间:2024-10-27 09:35:38

i = int(input()) a = list(map(int,input().split())) c = 0 _ = 0 while _<i-1: if a[_]>a[_+1]: c = c + 1 del(a[_+1]) i = i - 1 _ = _ - 1 _ = _+1 print(c)