結果

問題 No.893 お客様を誘導せよ
ユーザー c-yanc-yan
提出日時 2020-03-22 02:30:40
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 104 ms / 2,000 ms
コード長 252 bytes
コンパイル時間 115 ms
コンパイル使用メモリ 10,740 KB
実行使用メモリ 14,692 KB
最終ジャッジ日時 2023-08-25 21:11:04
合計ジャッジ時間 2,075 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,844 KB
testcase_01 AC 15 ms
7,900 KB
testcase_02 AC 28 ms
9,132 KB
testcase_03 AC 60 ms
11,384 KB
testcase_04 AC 61 ms
11,256 KB
testcase_05 AC 57 ms
11,172 KB
testcase_06 AC 43 ms
10,196 KB
testcase_07 AC 15 ms
7,988 KB
testcase_08 AC 104 ms
14,692 KB
testcase_09 AC 19 ms
8,300 KB
testcase_10 AC 15 ms
7,844 KB
testcase_11 AC 27 ms
7,800 KB
testcase_12 AC 27 ms
8,240 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())

P = [None] * N
m = 0
for i in range(N):
    P[i] = list(map(int, input().split()))
    m = max(m, P[i][0])

result = []
for i in range(1, m + 1):
    for Pi in P:
        if Pi[0] >= i:
            result.append(Pi[i])
print(*result)
0