結果

問題 No.893 お客様を誘導せよ
ユーザー kawacchu
提出日時 2019-10-10 22:08:10
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 149 ms / 2,000 ms
コード長 323 bytes
コンパイル時間 280 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 17,664 KB
最終ジャッジ日時 2024-11-22 00:27:34
合計ジャッジ時間 2,237 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 11
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import deque
N = int(input())
ans = []
L = [deque(list(map(int,input().split()))) for i in range(N)]
for i in range(N) :
    L[i].popleft()

flg = True
while flg :
    flg = False
    for i in range(len(L)) :
        if len(L[i]) :
            flg = True
            ans.append(L[i].popleft())
print(*ans)
0