結果

問題 No.893 お客様を誘導せよ
ユーザー nohakai3
提出日時 2022-07-24 18:52:32
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
TLE  
実行時間 -
コード長 259 bytes
コンパイル時間 76 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 24,384 KB
最終ジャッジ日時 2024-07-06 13:45:05
合計ジャッジ時間 6,429 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample TLE * 1 -- * 1
other -- * 11
権限があれば一括ダウンロードができます

ソースコード

diff #

l=[]
cnt=0
n=int(input())
for i in range(n):
    q=list(map(int,input().split()))
    if q[0]==0:
        continue
    l.append(q[1:])

cnt=0
ans=[]
while l:
    for x in l:
        if len(x)==0:
            continue
        ans.append(x.pop(0))


print(ans)
0