結果

問題 No.1399 すごろくで世界旅行 (構築)
ユーザー KudeKude
提出日時 2021-02-19 22:24:23
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 154 ms / 3,153 ms
コード長 244 bytes
コンパイル時間 325 ms
コンパイル使用メモリ 86,992 KB
実行使用メモリ 90,176 KB
最終ジャッジ日時 2023-10-15 02:57:47
合計ジャッジ時間 21,849 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
71,080 KB
testcase_01 AC 70 ms
71,396 KB
testcase_02 AC 70 ms
71,192 KB
testcase_03 AC 68 ms
71,320 KB
testcase_04 AC 69 ms
71,012 KB
testcase_05 AC 71 ms
71,228 KB
testcase_06 AC 71 ms
71,240 KB
testcase_07 AC 70 ms
71,236 KB
testcase_08 AC 71 ms
71,244 KB
testcase_09 AC 71 ms
71,324 KB
testcase_10 AC 71 ms
71,004 KB
testcase_11 AC 70 ms
71,240 KB
testcase_12 AC 69 ms
71,132 KB
testcase_13 AC 70 ms
71,248 KB
testcase_14 AC 71 ms
71,304 KB
testcase_15 AC 69 ms
71,292 KB
testcase_16 AC 71 ms
71,128 KB
testcase_17 AC 146 ms
89,852 KB
testcase_18 AC 148 ms
90,176 KB
testcase_19 AC 147 ms
90,092 KB
testcase_20 AC 154 ms
89,860 KB
testcase_21 AC 147 ms
89,548 KB
testcase_22 AC 136 ms
88,396 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

v, d = map(int, input().split())
e = [[0] * v for _ in range(v)]
if d == 1:
    e = [[1] * v for _ in range(v)]
else:
    e[0] = [1] * v
    for i in range(v):
        e[i][0] = 1
for t in e:
    for x in t:
        print(x, end='')
    print()
0