結果

問題 No.1399 すごろくで世界旅行 (構築)
ユーザー 👑 KazunKazun
提出日時 2021-02-19 22:51:34
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 115 ms / 3,153 ms
コード長 201 bytes
コンパイル時間 1,341 ms
コンパイル使用メモリ 86,864 KB
実行使用メモリ 84,416 KB
最終ジャッジ日時 2023-10-15 03:59:33
合計ジャッジ時間 24,558 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 74 ms
71,100 KB
testcase_01 AC 75 ms
71,156 KB
testcase_02 AC 72 ms
71,152 KB
testcase_03 AC 72 ms
71,364 KB
testcase_04 AC 74 ms
71,184 KB
testcase_05 AC 75 ms
71,148 KB
testcase_06 AC 74 ms
71,284 KB
testcase_07 AC 75 ms
71,168 KB
testcase_08 AC 74 ms
71,104 KB
testcase_09 AC 76 ms
71,212 KB
testcase_10 AC 73 ms
71,440 KB
testcase_11 AC 74 ms
71,156 KB
testcase_12 AC 74 ms
71,356 KB
testcase_13 AC 72 ms
71,204 KB
testcase_14 AC 73 ms
71,092 KB
testcase_15 AC 74 ms
71,176 KB
testcase_16 AC 75 ms
71,176 KB
testcase_17 AC 113 ms
84,416 KB
testcase_18 AC 113 ms
84,248 KB
testcase_19 AC 112 ms
84,288 KB
testcase_20 AC 111 ms
84,288 KB
testcase_21 AC 110 ms
84,376 KB
testcase_22 AC 115 ms
84,256 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

V,D=map(int,input().split())
if D==1:
    X=[[1]*V for _ in range(V)]
else:
    X=[[0]*V for _ in range(V)]

    for i in range(V):
        X[0][i]=X[i][0]=1

for x in X:
    print("".join(map(str,x)))
0