結果

問題 No.893 お客様を誘導せよ
ユーザー ttrttr
提出日時 2020-02-04 20:24:57
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 134 ms / 2,000 ms
コード長 315 bytes
コンパイル時間 89 ms
コンパイル使用メモリ 11,900 KB
実行使用メモリ 22,300 KB
最終ジャッジ日時 2023-10-21 06:32:25
合計ジャッジ時間 2,257 ms
ジャッジサーバーID
(参考情報)
judge9 / judge10
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 32 ms
10,160 KB
testcase_01 AC 33 ms
10,160 KB
testcase_02 AC 45 ms
11,644 KB
testcase_03 AC 88 ms
15,696 KB
testcase_04 AC 88 ms
15,672 KB
testcase_05 AC 80 ms
15,208 KB
testcase_06 AC 68 ms
13,576 KB
testcase_07 AC 32 ms
10,160 KB
testcase_08 AC 134 ms
22,300 KB
testcase_09 AC 35 ms
10,360 KB
testcase_10 AC 31 ms
10,164 KB
testcase_11 AC 50 ms
10,272 KB
testcase_12 AC 51 ms
10,424 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
L = [[int(l) for l in input().split()] for _ in range(N)]

ans = []
p = 0
for i in range(N):
    p = max(p, L[i][0])
    L[i].pop(0)

for _ in range(p):
    for j in range(N):
        if len(L[j]) == 0:
            continue
        ans.append(str(L[j][0]))
        L[j].pop(0)

print(" ".join(ans))
0