The Question
Why Is This Code Only Partially Correct?
anotherarr = [ ]
arr = [ ]
t = int(input())
for _ in range(t):
budget = int(input())
arr.append(budget)
arr.sort()
Length_Of_The_Array = len(arr)
for j in range(len(arr)):
hello = arr[j]*Length_Of_The_Array
anotherarr.append(hello)
Length_Of_The_Array-= 1
print(max(anotherarr))