結果

問題 No.893 お客様を誘導せよ
ユーザー buriburi
提出日時 2019-10-14 19:29:41
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 529 bytes
コンパイル時間 284 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 40,588 KB
最終ジャッジ日時 2024-12-24 09:59:09
合計ジャッジ時間 5,345 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 1 RE * 1
other AC * 2 WA * 1 RE * 7 TLE * 1
権限があれば一括ダウンロードができます

ソースコード

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