結果

問題 No.893 お客様を誘導せよ
コンテスト
ユーザー nathanael4171
提出日時 2019-09-28 15:12:17
言語 Python3
(3.14.3 + numpy 2.4.4 + scipy 1.17.1)
コンパイル:
python3 -mpy_compile _filename_
実行:
python3 _filename_
結果
WA  
実行時間 -
コード長 304 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 703 ms
コンパイル使用メモリ 20,824 KB
実行使用メモリ 16,472 KB
最終ジャッジ日時 2026-04-18 18:02:11
合計ジャッジ時間 10,172 ms
ジャッジサーバーID
(参考情報)
judge2_1 / judge1_1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 2
other WA * 1 TLE * 3 -- * 7
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

N = int(input())
p = []
for i in range(N):
    line = input().split()
    if len(line)>=2:
        p.append(list(map(int,line[1:])))

i = 1
idx = 0
while i< max(max(p)):
    if len(p[idx])!=0:
        print(p[idx].pop(0),end=' ')
        i += 1
    idx += 1
    if idx==len(p):
        idx = 0
print("")
0