結果

問題 No.893 お客様を誘導せよ
ユーザー miya145592miya145592
提出日時 2023-05-21 04:15:56
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 124 ms / 2,000 ms
コード長 254 bytes
コンパイル時間 285 ms
コンパイル使用メモリ 86,980 KB
実行使用メモリ 88,028 KB
最終ジャッジ日時 2023-08-23 12:02:46
合計ジャッジ時間 2,662 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
71,292 KB
testcase_01 AC 71 ms
71,352 KB
testcase_02 AC 93 ms
76,680 KB
testcase_03 AC 111 ms
80,704 KB
testcase_04 AC 110 ms
80,624 KB
testcase_05 AC 110 ms
81,340 KB
testcase_06 AC 103 ms
79,896 KB
testcase_07 AC 71 ms
71,328 KB
testcase_08 AC 124 ms
88,028 KB
testcase_09 AC 90 ms
76,024 KB
testcase_10 AC 72 ms
71,296 KB
testcase_11 AC 88 ms
76,500 KB
testcase_12 AC 99 ms
76,684 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
PA = [list(map(int, input().split())) for _ in range(N)]
P = 0
for i in range(N):
    P = max(P, PA[i][0])
p = 0
ans = []
for p in range(1, P+1):
    for i in range(N):
        if p<=PA[i][0]:
            ans.append(PA[i][p])
print(*ans)
0