結果

問題 No.1587 012 Matrix
ユーザー titia
提出日時 2021-07-08 22:48:56
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 84 ms / 1,000 ms
コード長 228 bytes
コンパイル時間 88 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 12,800 KB
最終ジャッジ日時 2024-07-01 13:00:21
合計ジャッジ時間 2,254 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 22
権限があれば一括ダウンロードができます

ソースコード

diff #

N=int(input())

ANS=[]
now=1
for i in range(N):
    x=now//2
    y=now%2

    X=[2]*x+[1]*y+[0]*(N-x-y)
    ANS.append(X)

    if i%2==0:
        now+=3
    else:
        now+=1

for ans in ANS:
    print("".join(map(str,ans)))
0