#include<iostream>
using namespace std
;
long long a
[6000];
int main()
{
int n
;cin
>>n
;
for(int i
=1;i
<=n
;i
++)
{
int b
;
long long c
;
cin
>>b
>>c
;
a
[b
]=c
;
}
for(int i
=1;i
<=n
;i
++)
{
int x
=1;
for(int j
=1;j
<=n
;j
++)
{
if(a
[i
]<a
[j
])x
++;
}
cout
<<x
<<endl
;
}
return 0;
}
转载请注明原文地址: https://lol.8miu.com/read-29556.html