n = int(input())
a = [0] * n
for i in range(n):
a[i] = int(input())
a.sort(reverse=True)
for i in range(n):
print(a[I])
sort()メソッドにreverse = Trueを記述しておく
Go to list of users who liked
More than 3 years have passed since last update.
n = int(input())
a = [0] * n
for i in range(n):
a[i] = int(input())
a.sort(reverse=True)
for i in range(n):
print(a[I])
sort()メソッドにreverse = Trueを記述しておく
Register as a new user and use Qiita more conveniently
Go to list of users who liked