結果
| 問題 | No.893 お客様を誘導せよ |
| コンテスト | |
| ユーザー |
buriburi
|
| 提出日時 | 2019-10-14 19:29:41 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 529 bytes |
| 記録 | |
| コンパイル時間 | 507 ms |
| コンパイル使用メモリ | 20,696 KB |
| 実行使用メモリ | 38,656 KB |
| 最終ジャッジ日時 | 2026-05-30 06:18:55 |
| 合計ジャッジ時間 | 5,907 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 1 RE * 1 |
| other | AC * 1 RE * 5 TLE * 1 -- * 4 |
ソースコード
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])
buriburi