結果

問題 No.1587 012 Matrix
ユーザー minimumminimum
提出日時 2021-07-08 22:54:45
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 80 ms / 1,000 ms
コード長 164 bytes
コンパイル時間 474 ms
コンパイル使用メモリ 87,052 KB
実行使用メモリ 71,560 KB
最終ジャッジ日時 2023-09-14 05:24:33
合計ジャッジ時間 3,459 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,244 KB
testcase_01 AC 72 ms
71,504 KB
testcase_02 AC 71 ms
71,224 KB
testcase_03 AC 76 ms
71,380 KB
testcase_04 AC 73 ms
71,220 KB
testcase_05 AC 74 ms
71,192 KB
testcase_06 AC 73 ms
71,488 KB
testcase_07 AC 73 ms
71,304 KB
testcase_08 AC 73 ms
71,320 KB
testcase_09 AC 72 ms
71,048 KB
testcase_10 AC 72 ms
71,192 KB
testcase_11 AC 73 ms
71,428 KB
testcase_12 AC 73 ms
71,344 KB
testcase_13 AC 73 ms
71,408 KB
testcase_14 AC 80 ms
71,380 KB
testcase_15 AC 74 ms
71,336 KB
testcase_16 AC 75 ms
71,376 KB
testcase_17 AC 80 ms
71,456 KB
testcase_18 AC 77 ms
71,288 KB
testcase_19 AC 77 ms
71,304 KB
testcase_20 AC 77 ms
71,324 KB
testcase_21 AC 76 ms
71,216 KB
testcase_22 AC 74 ms
71,560 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())

for i in range(n):
    if i < n // 2:
        print("0" * (n - 1 - i) + "1" + "2" * i)
    else:
        print("0" * (n - i - 1) + "2" * (i + 1))
0