結果

問題 No.893 お客様を誘導せよ
ユーザー kawacchukawacchu
提出日時 2019-10-10 22:08:10
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 134 ms / 2,000 ms
コード長 323 bytes
コンパイル時間 154 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 17,792 KB
最終ジャッジ日時 2024-05-01 18:36:20
合計ジャッジ時間 2,146 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 27 ms
10,752 KB
testcase_01 AC 28 ms
10,624 KB
testcase_02 AC 43 ms
11,648 KB
testcase_03 AC 84 ms
14,464 KB
testcase_04 AC 85 ms
14,336 KB
testcase_05 AC 81 ms
14,208 KB
testcase_06 AC 66 ms
12,928 KB
testcase_07 AC 28 ms
10,624 KB
testcase_08 AC 134 ms
17,792 KB
testcase_09 AC 31 ms
11,520 KB
testcase_10 AC 25 ms
10,752 KB
testcase_11 AC 45 ms
11,392 KB
testcase_12 AC 47 ms
11,648 KB
権限があれば一括ダウンロードができます

ソースコード

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