結果

問題 No.893 お客様を誘導せよ
ユーザー r_ishidar_ishida
提出日時 2020-02-05 01:24:27
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 116 ms / 2,000 ms
コード長 287 bytes
コンパイル時間 92 ms
コンパイル使用メモリ 11,884 KB
実行使用メモリ 22,664 KB
最終ジャッジ日時 2023-10-21 06:45:14
合計ジャッジ時間 1,788 ms
ジャッジサーバーID
(参考情報)
judge10 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 31 ms
10,076 KB
testcase_01 AC 29 ms
10,076 KB
testcase_02 AC 42 ms
11,592 KB
testcase_03 AC 77 ms
15,776 KB
testcase_04 AC 84 ms
15,752 KB
testcase_05 AC 77 ms
15,232 KB
testcase_06 AC 59 ms
13,564 KB
testcase_07 AC 27 ms
10,080 KB
testcase_08 AC 116 ms
22,664 KB
testcase_09 AC 31 ms
10,300 KB
testcase_10 AC 26 ms
10,084 KB
testcase_11 AC 46 ms
10,200 KB
testcase_12 AC 46 ms
10,344 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
a = []
p = []
for i in range(n):
    a.append(list(map(int,input().split())))
    p.append(a[i][0])
ans = []
for i in range(max(p)):
    for j in range(n):
        if len(a[j]) != 1:
            ans.append(a[j][1])
            a[j].pop(1)
print(' '.join(map(str, ans)))
0