結果

問題 No.1169 Row and Column and Diagonal
ユーザー matriematrie
提出日時 2020-12-29 22:31:47
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 141 ms / 2,000 ms
コード長 129 bytes
コンパイル時間 195 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 13,592 KB
最終ジャッジ日時 2024-04-15 22:52:54
合計ジャッジ時間 2,379 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 30 ms
10,624 KB
testcase_01 AC 30 ms
10,752 KB
testcase_02 AC 30 ms
10,624 KB
testcase_03 AC 30 ms
10,752 KB
testcase_04 AC 30 ms
10,624 KB
testcase_05 AC 30 ms
10,624 KB
testcase_06 AC 31 ms
10,880 KB
testcase_07 AC 35 ms
11,404 KB
testcase_08 AC 49 ms
11,532 KB
testcase_09 AC 61 ms
11,936 KB
testcase_10 AC 119 ms
13,032 KB
testcase_11 AC 129 ms
13,412 KB
testcase_12 AC 138 ms
13,592 KB
testcase_13 AC 139 ms
13,456 KB
testcase_14 AC 141 ms
13,468 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n=int(input())
s=[0]*n
a=''
for i in range(n): s[(i*2)%n]=str(i+1)
for i in range(n): a+=' '.join(s[i:]+s[:i])+'\n'
print(a[:-1])
0