結果

問題 No.1587 012 Matrix
ユーザー 👑 Kiri8128Kiri8128
提出日時 2021-07-08 23:01:33
言語 PyPy3
(7.3.8)
結果
AC  
実行時間 90 ms / 1,000 ms
コード長 162 bytes
コンパイル時間 780 ms
使用メモリ 75,828 KB
最終ジャッジ日時 2023-02-01 19:07:26
合計ジャッジ時間 4,556 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
使用メモリ
testcase_00 AC 85 ms
75,624 KB
testcase_01 AC 84 ms
75,808 KB
testcase_02 AC 85 ms
75,704 KB
testcase_03 AC 85 ms
75,760 KB
testcase_04 AC 84 ms
75,416 KB
testcase_05 AC 82 ms
75,548 KB
testcase_06 AC 83 ms
75,492 KB
testcase_07 AC 83 ms
75,684 KB
testcase_08 AC 84 ms
75,716 KB
testcase_09 AC 83 ms
75,472 KB
testcase_10 AC 84 ms
75,824 KB
testcase_11 AC 84 ms
75,792 KB
testcase_12 AC 85 ms
75,552 KB
testcase_13 AC 86 ms
75,468 KB
testcase_14 AC 86 ms
75,684 KB
testcase_15 AC 87 ms
75,520 KB
testcase_16 AC 88 ms
75,828 KB
testcase_17 AC 88 ms
75,500 KB
testcase_18 AC 88 ms
75,780 KB
testcase_19 AC 88 ms
75,720 KB
testcase_20 AC 89 ms
75,428 KB
testcase_21 AC 90 ms
75,496 KB
testcase_22 AC 87 ms
75,808 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