Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
131500 叶航帅 数组中元素交换 Python3 Wrong Answer 54 MS 3768 KB 187 2025-09-27 13:47:08

Tests(1/10):


Code:

n = int(input()) a = input().split() n = n//2 i = 0 t = 1 while t <= n: a[i],a[i+1] = a[i],a[i+1] t = t+1 i = i+2 for x in range(len(a)): print(a[x] ,end =' ')


Run Info:

------Input------
5 81 43 69 80 80
------Answer-----
43 81 80 69 80
------Your output-----
81 43 69 80 80