题解 | 左侧严格小于计数
左侧严格小于计数
https://www.nowcoder.com/practice/c5922c6cdd1445749bd42f586c422435
n = int(input())
A = list(map(int,input().split()))
B = [0]*n
for i in range(n):
cnt = 0
for j in range(i):
if A[i]>A[j]:
cnt+=1
B[i] = cnt
print(' '.join(map(str,B)))

