私の解答
n = int(input())
a = list(map(int, input().split()))
total = sum(a)
k = total/n
for ele in a:
if ele >= k:
print(ele)
解答例1
N = int(input())
avg = 0
A = [0] * N
values = input().split()
for i in range(N):
A[i] = int(values[i])
avg += A[i]
avg /= N
for a in A:
if a >= avg:
print(a)
解答例2
N = int(input())
A = [int(x) for x in input().split()]
avg = sum(A) / N
for a in A:
if a >= avg:
print(a)