結果

問題 No.1587 012 Matrix
ユーザー ytftytft
提出日時 2022-03-23 14:16:30
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 46 ms / 1,000 ms
コード長 204 bytes
コンパイル時間 394 ms
コンパイル使用メモリ 82,252 KB
実行使用メモリ 65,260 KB
最終ジャッジ日時 2024-04-19 20:11:55
合計ジャッジ時間 2,425 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 31 ms
53,420 KB
testcase_01 AC 31 ms
52,592 KB
testcase_02 AC 31 ms
53,020 KB
testcase_03 AC 34 ms
52,880 KB
testcase_04 AC 32 ms
53,116 KB
testcase_05 AC 33 ms
53,136 KB
testcase_06 AC 33 ms
52,952 KB
testcase_07 AC 36 ms
54,252 KB
testcase_08 AC 38 ms
58,500 KB
testcase_09 AC 38 ms
59,736 KB
testcase_10 AC 39 ms
60,864 KB
testcase_11 AC 40 ms
60,268 KB
testcase_12 AC 41 ms
61,428 KB
testcase_13 AC 41 ms
62,288 KB
testcase_14 AC 43 ms
62,548 KB
testcase_15 AC 44 ms
63,116 KB
testcase_16 AC 44 ms
62,864 KB
testcase_17 AC 46 ms
65,260 KB
testcase_18 AC 44 ms
64,264 KB
testcase_19 AC 45 ms
63,668 KB
testcase_20 AC 45 ms
64,744 KB
testcase_21 AC 46 ms
64,972 KB
testcase_22 AC 32 ms
51,952 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input=lambda:sys.stdin.readline().rstrip()
N=int(input())
ans=[[str(int(i+j<N)*2) for i in range(N)] for j in range(N)]
for i in range(N//2):
	ans[i][N-1-i]='1'
for i in ans:
	print(''.join(i))
0