結果

問題 No.1169 Row and Column and Diagonal
ユーザー daikisuyama
提出日時 2020-08-14 23:23:09
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 179 bytes
コンパイル時間 194 ms
コンパイル使用メモリ 81,920 KB
実行使用メモリ 75,980 KB
最終ジャッジ日時 2024-10-10 16:47:21
合計ジャッジ時間 2,256 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 WA * 1
other AC * 13
権限があれば一括ダウンロードができます

ソースコード

diff #

n=int(input())
ans=[]
st=2
for i in range(n):
    now=[(st+i)%n if st+i!=n else n for i in range(n)][::-1]
    st+=2
    st%=n
    if st==0:st=n
    print(" ".join(map(str,now)))
0