結果

問題 No.893 お客様を誘導せよ
ユーザー gorugo30gorugo30
提出日時 2021-02-24 22:33:45
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 111 ms / 2,000 ms
コード長 246 bytes
コンパイル時間 810 ms
コンパイル使用メモリ 81,712 KB
実行使用メモリ 88,384 KB
最終ジャッジ日時 2023-10-25 04:03:22
合計ジャッジ時間 2,125 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 41 ms
53,336 KB
testcase_01 AC 41 ms
55,384 KB
testcase_02 AC 91 ms
72,828 KB
testcase_03 AC 91 ms
81,412 KB
testcase_04 AC 92 ms
81,408 KB
testcase_05 AC 89 ms
80,828 KB
testcase_06 AC 81 ms
78,884 KB
testcase_07 AC 41 ms
53,416 KB
testcase_08 AC 111 ms
88,384 KB
testcase_09 AC 65 ms
70,380 KB
testcase_10 AC 41 ms
55,464 KB
testcase_11 AC 60 ms
66,264 KB
testcase_12 AC 70 ms
72,872 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
from collections import deque
qs = [deque(list(map(int, input().split()))[1:]) for i in range(N)]
ans = []
for i in range(101):
    for j in range(N):
        if len(qs[j]) > 0:
            ans.append(qs[j].popleft())
print(*ans)
0