結果
| 問題 |
No.1587 012 Matrix
|
| コンテスト | |
| ユーザー |
titia
|
| 提出日時 | 2021-07-08 22:48:13 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 211 bytes |
| コンパイル時間 | 107 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 13,440 KB |
| 最終ジャッジ日時 | 2024-07-01 13:00:02 |
| 合計ジャッジ時間 | 5,594 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 1 |
| other | WA * 22 |
ソースコード
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(*ans)
titia