結果
問題 | No.893 お客様を誘導せよ |
ユーザー | kawacchu |
提出日時 | 2019-10-10 22:08:10 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
AC
|
実行時間 | 121 ms / 2,000 ms |
コード長 | 323 bytes |
コンパイル時間 | 254 ms |
コンパイル使用メモリ | 10,672 KB |
実行使用メモリ | 15,348 KB |
最終ジャッジ日時 | 2023-08-14 05:49:27 |
合計ジャッジ時間 | 2,503 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge15 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 19 ms
8,444 KB |
testcase_01 | AC | 18 ms
8,524 KB |
testcase_02 | AC | 33 ms
9,560 KB |
testcase_03 | AC | 74 ms
12,124 KB |
testcase_04 | AC | 73 ms
12,124 KB |
testcase_05 | AC | 69 ms
11,980 KB |
testcase_06 | AC | 53 ms
10,868 KB |
testcase_07 | AC | 18 ms
8,540 KB |
testcase_08 | AC | 121 ms
15,348 KB |
testcase_09 | AC | 23 ms
9,412 KB |
testcase_10 | AC | 19 ms
8,436 KB |
testcase_11 | AC | 38 ms
9,276 KB |
testcase_12 | AC | 39 ms
9,492 KB |
ソースコード
from collections import deque N = int(input()) ans = [] L = [deque(list(map(int,input().split()))) for i in range(N)] for i in range(N) : L[i].popleft() flg = True while flg : flg = False for i in range(len(L)) : if len(L[i]) : flg = True ans.append(L[i].popleft()) print(*ans)