結果

問題 No.893 お客様を誘導せよ
ユーザー titiatitia
提出日時 2019-09-27 21:30:16
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 197 ms / 2,000 ms
コード長 234 bytes
コンパイル時間 97 ms
コンパイル使用メモリ 11,736 KB
実行使用メモリ 23,388 KB
最終ジャッジ日時 2023-10-25 01:51:14
合計ジャッジ時間 1,650 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 31 ms
10,012 KB
testcase_01 AC 31 ms
10,012 KB
testcase_02 AC 50 ms
11,884 KB
testcase_03 AC 104 ms
16,524 KB
testcase_04 AC 106 ms
16,500 KB
testcase_05 AC 98 ms
15,732 KB
testcase_06 AC 76 ms
14,040 KB
testcase_07 AC 28 ms
10,012 KB
testcase_08 AC 197 ms
23,388 KB
testcase_09 AC 33 ms
10,364 KB
testcase_10 AC 28 ms
10,020 KB
testcase_11 AC 32 ms
10,120 KB
testcase_12 AC 33 ms
10,388 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N=int(input())

R=[list(map(int,input().split())) for i in range(N)]

LIST=[]

for i in range(N):
    for j in range(1,R[i][0]+1):
        LIST.append((j,i,R[i][j]))

LIST.sort()
ANS=[LIST[i][2] for i in range(len(LIST))]
print(*ANS)
0