結果

問題 No.1587 012 Matrix
ユーザー minimumminimum
提出日時 2021-07-08 22:54:45
言語 PyPy3
(7.3.8)
結果
AC  
実行時間 87 ms / 1,000 ms
コード長 164 bytes
コンパイル時間 273 ms
使用メモリ 75,812 KB
最終ジャッジ日時 2023-02-01 19:02:27
合計ジャッジ時間 3,910 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
使用メモリ
testcase_00 AC 81 ms
75,724 KB
testcase_01 AC 81 ms
75,444 KB
testcase_02 AC 83 ms
75,404 KB
testcase_03 AC 82 ms
75,460 KB
testcase_04 AC 83 ms
75,440 KB
testcase_05 AC 82 ms
75,708 KB
testcase_06 AC 81 ms
75,408 KB
testcase_07 AC 82 ms
75,812 KB
testcase_08 AC 81 ms
75,752 KB
testcase_09 AC 82 ms
75,424 KB
testcase_10 AC 82 ms
75,568 KB
testcase_11 AC 83 ms
75,716 KB
testcase_12 AC 84 ms
75,772 KB
testcase_13 AC 85 ms
75,548 KB
testcase_14 AC 85 ms
75,776 KB
testcase_15 AC 84 ms
75,764 KB
testcase_16 AC 85 ms
75,532 KB
testcase_17 AC 86 ms
75,748 KB
testcase_18 AC 85 ms
75,812 KB
testcase_19 AC 86 ms
75,688 KB
testcase_20 AC 87 ms
75,540 KB
testcase_21 AC 86 ms
75,548 KB
testcase_22 AC 81 ms
75,448 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