結果

問題 No.893 お客様を誘導せよ
ユーザー GrayCoderGrayCoder
提出日時 2019-09-27 22:21:16
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 112 ms / 2,000 ms
コード長 380 bytes
コンパイル時間 586 ms
コンパイル使用メモリ 11,812 KB
実行使用メモリ 16,364 KB
最終ジャッジ日時 2023-10-24 22:40:54
合計ジャッジ時間 1,878 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 29 ms
10,012 KB
testcase_01 AC 29 ms
10,012 KB
testcase_02 AC 40 ms
11,060 KB
testcase_03 AC 70 ms
13,432 KB
testcase_04 AC 70 ms
13,420 KB
testcase_05 AC 67 ms
13,160 KB
testcase_06 AC 54 ms
12,176 KB
testcase_07 AC 28 ms
10,012 KB
testcase_08 AC 112 ms
16,364 KB
testcase_09 AC 37 ms
11,008 KB
testcase_10 AC 28 ms
10,016 KB
testcase_11 AC 36 ms
10,884 KB
testcase_12 AC 38 ms
11,060 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from sys import stdin

def main():
    input = lambda: stdin.readline()[:-1]
    N = int(input())
    A = [[0] * 100 for _ in [0] * N]
    for i in range(N):
        s = list(map(int, input().split()))
        A[i][:s[0]] = s[1:]

    ans = []
    for i in range(100):
        for j in range(N):
            if A[j][i]:
                ans.append(A[j][i])
    print(*ans)

main()
0