Run ID:95202

提交时间:2024-10-27 10:04:58

a = int(input()) b = list(map(input().split())) i=0 s=0 while i < n-1: if b[i]>b[i+1]: del b[i+1] a=a-1 s=s+1 continue i=i+1 print(s)