結果

問題 No.893 お客様を誘導せよ
ユーザー clearbook
提出日時 2019-10-23 16:03:16
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 147 ms / 2,000 ms
コード長 320 bytes
コンパイル時間 94 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 14,720 KB
最終ジャッジ日時 2024-07-06 12:56:32
合計ジャッジ時間 1,505 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 11
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())

A = []
max_p = 0
for i in range(N):
    x = list(map(int, input().split()))
    A.append(x)
    if x[0] > max_p:
        max_p = x[0]
    
for i in range(max_p):
    for j in range(N):
        if len(A[j]) == 1:
            pass
        else:
            print(A[j][1], end=' ')
            del A[j][1]
0