洛谷题目 P1428
// https://www.luogu.com.cn/problem/P1428#include <iostream>
using namespace std;
int main()
{
int a = {}, n, i, j, k;
cin >> n;
for (i = 0; i < n; i++)
cin >> a;
for (i = 0; i < n; i++)
{
if (i == 0)
{
cout << "0 ";
continue;
}
k = 0;
for (j = 0; j < i; j++)
{
if (a < a)
k++;
}
cout << k << " ";
}
return 0;
}
页:
[1]