제출 #1308813

#제출 시각아이디문제언어결과실행 시간메모리
1308813pandaa73Telepathy (JOI25_telepathy)C++20
컴파일 에러
0 ms0 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)

컴파일 시 표준 에러 (stderr) 메시지

telepathy.cpp:1:3: error: invalid preprocessing directive #Generator
    1 | # Generator: gen/joi25_telepathy.py
      |   ^~~~~~~~~
telepathy.cpp:3:1: error: 'import' does not name a type
    3 | import random
      | ^~~~~~
telepathy.cpp:3:1: note: C++20 'import' only available with '-fmodules-ts', which is not yet enabled with '-std=c++20'