Problem5771--找比我大的数

5771: 找比我大的数

Time Limit: 1.000 Sec  Memory Limit: 128 MB
Submit: 7  Solved: 8
[Submit] [Status] [Web Board] [Creator:]

Description

若某元素在一组数中比它大元素越多,则说明这个数在这组数的值就越小。
现请你统计出数组中的每个元素,数一数该数组有多少个元素比它大。

Input

第一行:N
第二行:N个整数

Output

N个整数,各数这之间有空格

Sample Input

5
4 6 12 16 8

Sample Output

4 3 1 0 2

HINT

【数据规模】
0<N<=100
【时间限制】1s

Source/Category

wg 

[Submit] [Status]