AnnaTolstoy/TKinazarov | AnnaTolstoy/evgesha | ||||
---|---|---|---|---|---|
n | n | 1 | import sys | ||
1 | import random | 2 | import random | ||
n | 2 | import sys | n | ||
3 | L = int(input()) | 3 | L = int(input()) | ||
4 | Txt = sys.stdin.read().replace('\n ', ' @ ').split() | 4 | Txt = sys.stdin.read().replace('\n ', ' @ ').split() | ||
t | 5 | n = random.randint(0, len(Txt) - L) | t | 5 | st = random.randint(0, len(Txt) - L) |
6 | print(' '.join(Txt[n:n + L])) | 6 | print(' '.join(Txt[st:st + L])) |
Legends | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
|