私の解答
N, M, K = map(int, input().split())
A = [int(x) for x in input().split()]
A.insert(M-1, K)
for ele in A:
print(ele)
解答例2とほぼ同じでした。
解答例1
values = input().split()
N = int(values[0])
M = int(values[1])
K = int(values[2])
A = [0] * N
values = input().split()
for i in range(N):
A[i] = int(values[i])
A.insert(M - 1, K)
for a in A:
print(a)
解答例2
N, M, K = map(int, input().split())
A = [int(x) for x in input.split()]
A.insert(M-1, K)
for a in A:
print(a)