山东智趣岛论坛

标题: 1073 [打印本页]

作者: caorongshuo    时间: 2025-2-16 16:55
标题: 1073
1,a=int(input())


n=map(int,input().split())
n=list(n)  #[1,2,3,4]


b=n[1:] #[2,3,4]
b.append(n[0])#[2,3,4,1]
s=""
for i in b:
    s=s+" "+str(i)
s[1:]

s=" ".join(b)


2,a=int(input())
n=map(int,input().split())
b=n[1:]
b.append(n[0])
s=""
for i in b:
    s=s+" "+str(i)
print(s[1:])





欢迎光临 山东智趣岛论坛 (https://abc.sdzqd.com/) Powered by Discuz! X3.3