結果
問題 | No.893 お客様を誘導せよ |
ユーザー |
|
提出日時 | 2022-05-14 04:11:34 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 130 ms / 2,000 ms |
コード長 | 328 bytes |
コンパイル時間 | 195 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 17,152 KB |
最終ジャッジ日時 | 2024-07-22 10:08:13 |
合計ジャッジ時間 | 2,112 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 11 |
ソースコード
n = int(input()) a = [] for _ in range(n): a_i = list(map(int, input().split())) a.append(a_i[1:]) len_max = 0 for i in range(n): if len_max < len(a[i]): len_max = len(a[i]) ans = [] for _ in range(len_max): for i in range(n): if len(a[i]) != 0: ans.append(a[i].pop(0)) print(*ans)