結果

問題 No.1587 012 Matrix
ユーザー H3PO4H3PO4
提出日時 2021-07-08 22:33:56
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 62 ms / 1,000 ms
コード長 207 bytes
コンパイル時間 133 ms
コンパイル使用メモリ 10,636 KB
実行使用メモリ 10,144 KB
最終ジャッジ日時 2023-09-14 05:11:01
合計ジャッジ時間 1,954 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,824 KB
testcase_01 AC 14 ms
7,792 KB
testcase_02 AC 14 ms
7,776 KB
testcase_03 AC 14 ms
7,784 KB
testcase_04 AC 14 ms
7,976 KB
testcase_05 AC 13 ms
7,824 KB
testcase_06 AC 13 ms
7,824 KB
testcase_07 AC 13 ms
7,792 KB
testcase_08 AC 14 ms
7,840 KB
testcase_09 AC 14 ms
7,836 KB
testcase_10 AC 14 ms
7,796 KB
testcase_11 AC 17 ms
8,268 KB
testcase_12 AC 20 ms
8,236 KB
testcase_13 AC 25 ms
8,484 KB
testcase_14 AC 33 ms
8,784 KB
testcase_15 AC 37 ms
9,116 KB
testcase_16 AC 45 ms
9,468 KB
testcase_17 AC 51 ms
9,648 KB
testcase_18 AC 57 ms
9,916 KB
testcase_19 AC 62 ms
9,780 KB
testcase_20 AC 62 ms
10,144 KB
testcase_21 AC 60 ms
10,048 KB
testcase_22 AC 14 ms
7,928 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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