fork download
  1. from array import array
  2. N, m, k = map(int, input().split())
  3. B = [0] * N
  4. for i in range(0, N):
  5. B[i] = int(input())
  6. t = B[m]
  7. B[m] = B[k]
  8. B[k] = t
  9. print(B)
Success #stdin #stdout 0.11s 14152KB
stdin
6 1 4
12
4
15
24
16
1
stdout
[12, 16, 15, 24, 4, 1]