結果

問題 No.893 お客様を誘導せよ
ユーザー superzugansuperzugan
提出日時 2021-08-28 23:49:26
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
RE  
実行時間 -
コード長 328 bytes
コンパイル時間 107 ms
コンパイル使用メモリ 10,936 KB
実行使用メモリ 28,452 KB
最終ジャッジ日時 2023-08-14 06:04:13
合計ジャッジ時間 3,100 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,828 KB
testcase_01 AC 17 ms
7,728 KB
testcase_02 AC 45 ms
9,944 KB
testcase_03 AC 244 ms
23,776 KB
testcase_04 AC 248 ms
23,640 KB
testcase_05 AC 204 ms
20,804 KB
testcase_06 AC 116 ms
14,656 KB
testcase_07 AC 16 ms
7,808 KB
testcase_08 AC 333 ms
28,452 KB
testcase_09 AC 235 ms
24,040 KB
testcase_10 RE -
testcase_11 AC 234 ms
24,076 KB
testcase_12 AC 229 ms
23,944 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n=int(input())
lst=[[0]*n for _ in range(n)]
max_a=0
for i in range(n):
    a,*b=map(int,input().split())
    for j in range(a):
        lst[i][j]=b[j]
    max_a=max(max_a,a)
ans_lst=[]
for i in range(n):
    for j in range(n):
        ans_lst.append(lst[j][i] if lst[j][i]!=0 else None)
print(*[i for i in ans_lst if i!=None])
0