結果

問題 No.1587 012 Matrix
ユーザー H3PO4H3PO4
提出日時 2021-07-08 22:33:56
言語 Python3
(3.10.1 + numpy 1.22.3 + scipy 1.8.0)
結果
AC  
実行時間 68 ms / 1,000 ms
コード長 207 bytes
コンパイル時間 67 ms
使用メモリ 9,720 KB
最終ジャッジ日時 2023-02-01 18:43:07
合計ジャッジ時間 2,467 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
使用メモリ
testcase_00 AC 16 ms
7,492 KB
testcase_01 AC 16 ms
7,700 KB
testcase_02 AC 15 ms
7,564 KB
testcase_03 AC 15 ms
7,496 KB
testcase_04 AC 16 ms
7,608 KB
testcase_05 AC 16 ms
7,588 KB
testcase_06 AC 16 ms
7,532 KB
testcase_07 AC 16 ms
7,724 KB
testcase_08 AC 16 ms
7,540 KB
testcase_09 AC 16 ms
7,540 KB
testcase_10 AC 18 ms
7,696 KB
testcase_11 AC 19 ms
7,764 KB
testcase_12 AC 23 ms
7,872 KB
testcase_13 AC 29 ms
8,200 KB
testcase_14 AC 35 ms
8,572 KB
testcase_15 AC 43 ms
8,756 KB
testcase_16 AC 51 ms
9,104 KB
testcase_17 AC 59 ms
9,268 KB
testcase_18 AC 63 ms
9,616 KB
testcase_19 AC 65 ms
9,720 KB
testcase_20 AC 67 ms
9,580 KB
testcase_21 AC 68 ms
9,716 KB
testcase_22 AC 16 ms
7,648 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