結果
| 問題 | No.893 お客様を誘導せよ |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-03-22 00:29:36 |
| 言語 | Python3 (3.14.7 + numpy 2.5.2 + scipy 1.18.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 87 ms / 2,000 ms |
| + 479µs | |
| コード長 | 338 bytes |
| 記録 | |
| コンパイル時間 | 57 ms |
| コンパイル使用メモリ | 15,232 KB |
| 実行使用メモリ | 17,280 KB |
| 最終ジャッジ日時 | 2026-09-12 16:35:39 |
| 合計ジャッジ時間 | 2,188 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 11 |
ソースコード
from collections import deque
n = int(input())
L = []
for _ in range(n):
Q = deque(map(int, input().split()))
Q.popleft()
L.append(Q)
ANS = []
while True:
cnt = 0
for i in range(n):
if L[i]:
ANS.append(L[i].popleft())
else:
cnt += 1
if cnt == n:
break
print(*ANS)