[题目通道](小鱼比可爱 - 洛谷)
#include <bits/stdc++.h>
using namespace std;
int qw[10300],we[10300],er[10300];
int main()
{int n,m,a=1;string q="";cin>>n;for (int i=1;i<=n;i++){cin>>qw[i];}for (int i=1;i<=n;i++){for (int q=1;q<=i-1;q++){if (qw[q]<qw[i])we[i]++;}}for (int i=1;i<=n;i++){cout<<we[i]<<" ";}return 0;
}