結果

問題 No.1587 012 Matrix
ユーザー ytftytft
提出日時 2022-03-23 14:16:30
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 85 ms / 1,000 ms
コード長 204 bytes
コンパイル時間 489 ms
コンパイル使用メモリ 87,140 KB
実行使用メモリ 76,008 KB
最終ジャッジ日時 2023-08-01 21:00:07
合計ジャッジ時間 4,375 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
71,188 KB
testcase_01 AC 71 ms
71,340 KB
testcase_02 AC 70 ms
71,124 KB
testcase_03 AC 71 ms
71,116 KB
testcase_04 AC 70 ms
71,260 KB
testcase_05 AC 71 ms
71,128 KB
testcase_06 AC 72 ms
71,124 KB
testcase_07 AC 70 ms
71,240 KB
testcase_08 AC 71 ms
76,008 KB
testcase_09 AC 74 ms
75,708 KB
testcase_10 AC 76 ms
75,584 KB
testcase_11 AC 75 ms
75,764 KB
testcase_12 AC 80 ms
75,832 KB
testcase_13 AC 79 ms
75,856 KB
testcase_14 AC 84 ms
75,888 KB
testcase_15 AC 79 ms
75,888 KB
testcase_16 AC 79 ms
75,808 KB
testcase_17 AC 82 ms
75,908 KB
testcase_18 AC 83 ms
75,804 KB
testcase_19 AC 82 ms
75,964 KB
testcase_20 AC 85 ms
75,800 KB
testcase_21 AC 83 ms
75,848 KB
testcase_22 AC 72 ms
71,224 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