結果

問題 No.1587 012 Matrix
ユーザー KudeKude
提出日時 2021-07-08 22:59:39
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 96 ms / 1,000 ms
コード長 312 bytes
コンパイル時間 341 ms
コンパイル使用メモリ 87,176 KB
実行使用メモリ 79,112 KB
最終ジャッジ日時 2023-09-14 05:27:09
合計ジャッジ時間 3,998 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
71,528 KB
testcase_01 AC 69 ms
71,216 KB
testcase_02 AC 70 ms
71,164 KB
testcase_03 AC 76 ms
71,260 KB
testcase_04 AC 70 ms
71,580 KB
testcase_05 AC 74 ms
71,164 KB
testcase_06 AC 71 ms
71,116 KB
testcase_07 AC 70 ms
71,268 KB
testcase_08 AC 93 ms
75,676 KB
testcase_09 AC 76 ms
76,336 KB
testcase_10 AC 76 ms
76,228 KB
testcase_11 AC 78 ms
76,252 KB
testcase_12 AC 80 ms
76,340 KB
testcase_13 AC 82 ms
76,436 KB
testcase_14 AC 83 ms
76,496 KB
testcase_15 AC 85 ms
76,184 KB
testcase_16 AC 86 ms
76,472 KB
testcase_17 AC 86 ms
76,600 KB
testcase_18 AC 91 ms
78,860 KB
testcase_19 AC 93 ms
78,972 KB
testcase_20 AC 96 ms
79,112 KB
testcase_21 AC 95 ms
78,924 KB
testcase_22 AC 70 ms
71,580 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
d = [[0] * n for _ in range(n)]
for i in range(n // 2):
    for j in range(i):
        d[i][j] += 1
        d[i + n // 2][j + n // 2] += 1
    for j in range(n):
        d[i + n // 2][j] += 1
    for j in range(n // 2):
        d[i + n // 2][j] += 1
for di in d:
    print(''.join(map(str, di)))
0