| # | Time | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 1308813 | pandaa73 | Telepathy (JOI25_telepathy) | C++20 | 0 ms | 0 KiB |
# Generator: gen/joi25_telepathy.py
import random
NOT_SHUFFLED_SUBTASK = 1
LINE_SUBTASK = 2
NO_LIMITS_SUBTASK = 3
SHUFFLE_TREE = False
IS_LINE = True
Q = 1
N = 20
ID = list(range(N))
if IS_LINE:
print(LINE_SUBTASK)
elif not SHUFFLE_TREE:
print(NOT_SHUFFLED_SUBTASK)
else: print(NO_LIMITS_SUBTASK)
print(Q)
for _ in range(Q):
ed = []
for i in range(N - 1):
if IS_LINE:
ed.append((i, i + 1))
else: ed.append(random.sample(ID, 2))
P = ID
Q = ID
if SHUFFLE_TREE:
random.shuffle(P)
random.shuffle(Q)
(S, T) = random.sample(ID, 2)
print(N)
for [u, v] in ed:
print(u, v)
print(*P)
print(*Q)
print(S, T)
