結果

問題 No.1587 012 Matrix
ユーザー koba-e964koba-e964
提出日時 2021-10-06 10:57:18
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 130 ms / 1,000 ms
コード長 262 bytes
コンパイル時間 283 ms
コンパイル使用メモリ 87,012 KB
実行使用メモリ 79,516 KB
最終ジャッジ日時 2023-09-30 08:40:00
合計ジャッジ時間 4,674 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 75 ms
71,312 KB
testcase_01 AC 74 ms
71,256 KB
testcase_02 AC 75 ms
71,424 KB
testcase_03 AC 76 ms
71,336 KB
testcase_04 AC 75 ms
71,264 KB
testcase_05 AC 75 ms
71,288 KB
testcase_06 AC 78 ms
71,060 KB
testcase_07 AC 81 ms
71,524 KB
testcase_08 AC 86 ms
76,856 KB
testcase_09 AC 99 ms
76,764 KB
testcase_10 AC 101 ms
77,092 KB
testcase_11 AC 101 ms
77,068 KB
testcase_12 AC 107 ms
77,656 KB
testcase_13 AC 114 ms
78,492 KB
testcase_14 AC 113 ms
78,316 KB
testcase_15 AC 116 ms
78,568 KB
testcase_16 AC 121 ms
79,124 KB
testcase_17 AC 122 ms
79,304 KB
testcase_18 AC 126 ms
79,460 KB
testcase_19 AC 129 ms
79,516 KB
testcase_20 AC 129 ms
79,424 KB
testcase_21 AC 130 ms
79,476 KB
testcase_22 AC 81 ms
71,228 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#!/usr/bin/env python3

n = int(input())

for i in range(n):
    for j in range(n):
        val = 0
        if j >= i:
            if i < n // 2 and i == j:
                val = 1
            else:
                val = 2
        print(val, end='')
    print()
0