結果

問題 No.1587 012 Matrix
ユーザー Kiri8128Kiri8128
提出日時 2021-07-08 23:01:33
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 76 ms / 1,000 ms
コード長 162 bytes
コンパイル時間 282 ms
コンパイル使用メモリ 87,288 KB
実行使用メモリ 71,588 KB
最終ジャッジ日時 2023-09-14 05:28:21
合計ジャッジ時間 3,276 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
71,056 KB
testcase_01 AC 70 ms
71,464 KB
testcase_02 AC 69 ms
71,228 KB
testcase_03 AC 69 ms
71,560 KB
testcase_04 AC 69 ms
71,216 KB
testcase_05 AC 70 ms
71,464 KB
testcase_06 AC 70 ms
71,212 KB
testcase_07 AC 70 ms
71,432 KB
testcase_08 AC 70 ms
71,324 KB
testcase_09 AC 69 ms
71,252 KB
testcase_10 AC 71 ms
71,336 KB
testcase_11 AC 74 ms
71,588 KB
testcase_12 AC 71 ms
71,340 KB
testcase_13 AC 71 ms
71,340 KB
testcase_14 AC 70 ms
71,188 KB
testcase_15 AC 72 ms
71,376 KB
testcase_16 AC 71 ms
71,560 KB
testcase_17 AC 71 ms
71,452 KB
testcase_18 AC 72 ms
71,324 KB
testcase_19 AC 75 ms
71,488 KB
testcase_20 AC 73 ms
71,464 KB
testcase_21 AC 76 ms
71,308 KB
testcase_22 AC 73 ms
71,324 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
for i in range(N):
    if i % 2 == 0:
        print("0" * (N - i - 1) + "1" + "2" * i)
    else:
        print("0" * (N - i - 1) + "2" * (i + 1))
0