結果

問題 No.893 お客様を誘導せよ
ユーザー maspy
提出日時 2020-01-16 12:41:08
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 601 ms / 2,000 ms
コード長 336 bytes
コンパイル時間 227 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 56,552 KB
最終ジャッジ日時 2024-06-23 15:19:19
合計ジャッジ時間 8,699 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 11
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines

import numpy as np

N = int(readline())
A = np.zeros((N, 110), np.int32)
for i in range(N):
    p, *a = map(int, readline().split())
    A[i,:p] = a

A = A.T.ravel()
answer = A[A > 0]
print(' '.join(answer.astype(str)))
0