Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
134714 6倪葭轩 22数列变换III Python3 Accepted 51 MS 3776 KB 176 2025-11-01 11:45:41

Tests(2/2):


Code:

n = int(input()) arr = list(input().split()) k = int(input()) for _ in range(k): x = int(input()) temp = arr.pop(x - 1) arr.append(temp) print(' '.join(arr))