結果

問題 No.893 お客様を誘導せよ
ユーザー buriburiburiburi
提出日時 2019-10-14 19:29:41
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 529 bytes
コンパイル時間 165 ms
コンパイル使用メモリ 10,796 KB
実行使用メモリ 33,388 KB
最終ジャッジ日時 2023-08-25 22:37:30
合計ジャッジ時間 4,196 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 RE -
testcase_02 RE -
testcase_03 RE -
testcase_04 RE -
testcase_05 RE -
testcase_06 RE -
testcase_07 AC 16 ms
8,500 KB
testcase_08 TLE -
testcase_09 -- -
testcase_10 -- -
testcase_11 -- -
testcase_12 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import deque
n = int(input())
customers = []
lmax = 0
for i in range(n):
    line = input().split()
    if int(line[0]) > lmax:
        lmax = int(line[0])
    customers.append(line[1:])
for x in customers:
    if int(x[0]) > lmax:
        lmax = int(x[0])

dic = {}
for x in range(n):
    for c in range(len(customers[x])):
        dic[(x,c)] = customers[x][c]
re = ""
for x in range(lmax):
    for y in range(n):
        if dic.get((x,y)):
            re += dic.get((x,y))
            re += " "
print(re[:-1])
0