SHOW:
|
|
- or go back to the newest paste.
| 1 | from random import * | |
| 2 | seed(13) | |
| 3 | ||
| 4 | N = int(2e5) | |
| 5 | Q = int(2e5) | |
| 6 | ||
| 7 | print(N) | |
| 8 | p = list(range(N)) | |
| 9 | shuffle(p) | |
| 10 | print(*p) | |
| 11 | print(*[max(0, i - 2) + 1 + (1 if i > 2 else 0) for i in range(N - 1)]) | |
| 12 | ||
| 13 | print(Q) | |
| 14 | for _ in range(Q // 2): | |
| 15 | - | print(1, randint(1, N), randint(1, N)) |
| 15 | + | print(1, 2, randint(1, N)) |
| 16 | print(2) |