Submission #67930089


Source Code Expand

from itertools import product

n, k, x = map(int, input().split())
s = [input() for _ in range(n)]


p = []
for t in product(s, repeat=k):
    p.append("".join(t))

p.sort()
print(p[x - 1])

Submission Info

Submission Time
Task C - Concat (X-th)
User So_hey
Language Python (PyPy 3.10-v7.3.12)
Score 300
Code Size 202 Byte
Status AC
Exec Time 125 ms
Memory 92384 KiB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 300 / 300
Status
AC × 2
AC × 27
Set Name Test Cases
Sample sample_01.txt, sample_02.txt
All hand_01.txt, hand_02.txt, hand_03.txt, hand_04.txt, hand_06.txt, hand_07.txt, random_01.txt, random_02.txt, random_03.txt, random_04.txt, random_05.txt, random_06.txt, random_07.txt, random_08.txt, random_09.txt, random_10.txt, random_11.txt, random_12.txt, random_13.txt, random_14.txt, random_15.txt, random_16.txt, random_17.txt, random_18.txt, random_19.txt, sample_01.txt, sample_02.txt
Case Name Status Exec Time Memory
hand_01.txt AC 69 ms 81064 KiB
hand_02.txt AC 124 ms 89968 KiB
hand_03.txt AC 70 ms 81200 KiB
hand_04.txt AC 123 ms 88648 KiB
hand_06.txt AC 68 ms 80276 KiB
hand_07.txt AC 66 ms 76724 KiB
random_01.txt AC 117 ms 89376 KiB
random_02.txt AC 98 ms 86800 KiB
random_03.txt AC 72 ms 80400 KiB
random_04.txt AC 65 ms 76380 KiB
random_05.txt AC 113 ms 89688 KiB
random_06.txt AC 64 ms 76432 KiB
random_07.txt AC 62 ms 76688 KiB
random_08.txt AC 69 ms 81268 KiB
random_09.txt AC 125 ms 89908 KiB
random_10.txt AC 70 ms 81296 KiB
random_11.txt AC 119 ms 88996 KiB
random_12.txt AC 74 ms 81476 KiB
random_13.txt AC 122 ms 89736 KiB
random_14.txt AC 65 ms 80288 KiB
random_15.txt AC 62 ms 76672 KiB
random_16.txt AC 64 ms 80204 KiB
random_17.txt AC 112 ms 92064 KiB
random_18.txt AC 92 ms 92384 KiB
random_19.txt AC 63 ms 76436 KiB
sample_01.txt AC 63 ms 76696 KiB
sample_02.txt AC 69 ms 81248 KiB