結果

問題 No.893 お客様を誘導せよ
ユーザー nathanael4171
提出日時 2019-09-28 15:15:32
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 203 ms / 2,000 ms
コード長 316 bytes
コンパイル時間 106 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 14,848 KB
最終ジャッジ日時 2024-10-02 08:16:04
合計ジャッジ時間 1,734 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 11
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
p = []
for i in range(N):
    line = input().split()
    if len(line)>=2:
        p.append(list(map(int,line[1:])))

max_ = max(max(p))
i = 0
idx = 0
while i< max_:
    if len(p[idx])!=0:
        print(p[idx].pop(0),end=' ')
        i += 1
    idx += 1
    if idx==len(p):
        idx = 0
print("")
0