Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
85562 丁俊杰 数组中元素交换 Python3 Accepted 39 MS 3764 KB 116 2024-07-18 12:21:28

Tests(10/10):


Code:

n=int(input()) a=list(map(int,input().split())) for i in range(0,n-1,2): a[i],a[i+1]=a[i+1],a[i] print(*a)