結果

問題 No.893 お客様を誘導せよ
ユーザー komkompikomkompi
提出日時 2019-11-12 07:49:50
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 132 ms / 2,000 ms
コード長 263 bytes
コンパイル時間 186 ms
コンパイル使用メモリ 11,644 KB
実行使用メモリ 16,388 KB
最終ジャッジ日時 2023-10-17 11:54:07
合計ジャッジ時間 2,522 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 31 ms
9,972 KB
testcase_01 AC 29 ms
9,972 KB
testcase_02 AC 44 ms
10,912 KB
testcase_03 AC 84 ms
13,040 KB
testcase_04 AC 85 ms
13,040 KB
testcase_05 AC 79 ms
12,896 KB
testcase_06 AC 66 ms
12,000 KB
testcase_07 AC 29 ms
9,972 KB
testcase_08 AC 132 ms
16,388 KB
testcase_09 AC 34 ms
10,180 KB
testcase_10 AC 29 ms
9,976 KB
testcase_11 AC 45 ms
10,064 KB
testcase_12 AC 45 ms
10,244 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N=int(input())

P=[]
times=0
for _ in range(N):
    P.append(list(map(int,input().split()))[::-1])
    times=max(len(P[-1]),times)

#print(P)
ans=[]
for _ in range(times):
    for item in P:
        if len(item)>1:
            ans.append(item.pop(-2))
print(*ans)
0