题解 | 小红的排列构造①
小红的排列构造①
https://www.nowcoder.com/practice/2b0a9318cc0740d1a78eec06162e7bea
n = int(input())
if n == 1 or n == 2:
print('-1')
else:
print('3 2 1',end=' ')
for i in range(4,n+1):
print(i,end=' ')
小红的排列构造①
https://www.nowcoder.com/practice/2b0a9318cc0740d1a78eec06162e7bea
n = int(input())
if n == 1 or n == 2:
print('-1')
else:
print('3 2 1',end=' ')
for i in range(4,n+1):
print(i,end=' ')
相关推荐
程序员小白条:985+大厂实习,暑期乱杀,随便玩,就看选哪个厂了