結果

問題 No.893 お客様を誘導せよ
ユーザー fV9TwBhUoa9S3eVfV9TwBhUoa9S3eV
提出日時 2019-10-31 08:32:41
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
TLE  
(最新)
AC  
(最初)
実行時間 -
コード長 373 bytes
コンパイル時間 474 ms
コンパイル使用メモリ 10,660 KB
実行使用メモリ 12,752 KB
最終ジャッジ日時 2023-10-12 23:57:13
合計ジャッジ時間 8,787 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
12,164 KB
testcase_01 AC 15 ms
7,800 KB
testcase_02 AC 44 ms
9,416 KB
testcase_03 AC 1,302 ms
12,728 KB
testcase_04 AC 1,278 ms
12,752 KB
testcase_05 AC 1,038 ms
12,280 KB
testcase_06 AC 397 ms
11,060 KB
testcase_07 AC 16 ms
7,832 KB
testcase_08 TLE -
testcase_09 -- -
testcase_10 -- -
testcase_11 -- -
testcase_12 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

# No.893 お客様を誘導せよ
n = int(input())
p = []
a = []
queue = []

for i in range(n):
    tmp = input().split()
    p.append(int(tmp[0]))
    a.append(tmp[1:])

while len(queue) < sum(p):
    for i in range(n):
        if len(a[i]) > 0:
            queue.append(a[i][0])
            a[i] = a[i][1:]
        
s = ''

for k in queue:
    s += k + ' '

print(s[:-1])
0