21 lines
390 B
Python
21 lines
390 B
Python
|
import random
|
||
|
|
||
|
LENGTH=1
|
||
|
|
||
|
print(LENGTH)
|
||
|
for _ in range(LENGTH):
|
||
|
n = random.randint(1, 200000)
|
||
|
n = 200000
|
||
|
print(n)
|
||
|
root = random.randint(1, n)
|
||
|
l = []
|
||
|
for i in range(n):
|
||
|
if i==root:
|
||
|
l.append(str(root))
|
||
|
else:
|
||
|
j = i
|
||
|
while i==j:
|
||
|
j=random.randint(1, n)
|
||
|
l.append(str(j))
|
||
|
|
||
|
print(" ".join(l))
|