1312b

是吃可爱长大的發表於2024-06-06

https://codeforces.com/problemset/problem/1312/B/

"""
要想 j - cs[j] == i - cs[i], 必須要 j - i == cs[j] - cs[i]

已知 j - i > 0
倒序 cs[j] - cs[i] <= 0

"""

t = int(input())

for _ in range(t):
    n = int(input())
    cs = list(map(int, input().split()))
    cs.sort(reverse=True)
    print(*cs)