結果

問題 No.1587 012 Matrix
ユーザー KudeKude
提出日時 2021-07-08 22:59:39
言語 PyPy3
(7.3.8)
結果
AC  
実行時間 111 ms / 1,000 ms
コード長 312 bytes
コンパイル時間 272 ms
使用メモリ 83,332 KB
最終ジャッジ日時 2023-02-01 19:05:16
合計ジャッジ時間 4,604 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
使用メモリ
testcase_00 AC 82 ms
75,736 KB
testcase_01 AC 83 ms
75,560 KB
testcase_02 AC 82 ms
75,728 KB
testcase_03 AC 82 ms
75,808 KB
testcase_04 AC 82 ms
75,756 KB
testcase_05 AC 82 ms
75,552 KB
testcase_06 AC 84 ms
75,792 KB
testcase_07 AC 83 ms
75,436 KB
testcase_08 AC 86 ms
80,200 KB
testcase_09 AC 90 ms
80,540 KB
testcase_10 AC 91 ms
80,824 KB
testcase_11 AC 94 ms
80,788 KB
testcase_12 AC 96 ms
80,556 KB
testcase_13 AC 98 ms
80,992 KB
testcase_14 AC 99 ms
80,580 KB
testcase_15 AC 100 ms
80,824 KB
testcase_16 AC 102 ms
81,060 KB
testcase_17 AC 107 ms
82,708 KB
testcase_18 AC 110 ms
83,092 KB
testcase_19 AC 111 ms
83,176 KB
testcase_20 AC 111 ms
83,252 KB
testcase_21 AC 111 ms
83,332 KB
testcase_22 AC 84 ms
75,508 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