提出 #76618774


ソースコード 拡げる

N = int(input())
B = [[] for i in range(N)]
for i in range(1, N + 1):
    K, *A = map(int, input().split())
    for a in A:
        B[a - 1].append(i)
for i in range(N):
    print(len(B[i]), *B[i])

提出情報

提出日時
問題 B - Gift
ユーザ shogo314
言語 Python (PyPy 3.11-v7.3.20)
得点 200
コード長 206 Byte
結果 AC
実行時間 74 ms
メモリ 104460 KiB

ジャッジ結果

セット名 Sample All
得点 / 配点 0 / 0 200 / 200
結果
AC × 3
AC × 14
セット名 テストケース
Sample 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt
All 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt, 01_random_00.txt, 01_random_01.txt, 01_random_02.txt, 01_random_03.txt, 01_random_04.txt, 01_random_05.txt, 01_random_06.txt, 01_random_07.txt, 01_random_08.txt, 01_random_09.txt, 01_random_10.txt
ケース名 結果 実行時間 メモリ
00_sample_00.txt AC 50 ms 79408 KiB
00_sample_01.txt AC 50 ms 79432 KiB
00_sample_02.txt AC 50 ms 79548 KiB
01_random_00.txt AC 50 ms 79480 KiB
01_random_01.txt AC 74 ms 104460 KiB
01_random_02.txt AC 53 ms 80260 KiB
01_random_03.txt AC 51 ms 80260 KiB
01_random_04.txt AC 62 ms 96112 KiB
01_random_05.txt AC 62 ms 95216 KiB
01_random_06.txt AC 63 ms 96116 KiB
01_random_07.txt AC 59 ms 90636 KiB
01_random_08.txt AC 63 ms 96344 KiB
01_random_09.txt AC 57 ms 88832 KiB
01_random_10.txt AC 67 ms 102928 KiB