結果

問題 No.1169 Row and Column and Diagonal
ユーザー etale.K3etale.K3
提出日時 2021-04-20 21:54:43
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
AC  
実行時間 124 ms / 2,000 ms
コード長 159 bytes
コンパイル時間 77 ms
コンパイル使用メモリ 10,732 KB
実行使用メモリ 11,004 KB
最終ジャッジ日時 2023-09-17 08:56:31
合計ジャッジ時間 3,000 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,740 KB
testcase_01 AC 16 ms
7,712 KB
testcase_02 AC 15 ms
7,712 KB
testcase_03 AC 15 ms
7,812 KB
testcase_04 AC 15 ms
7,956 KB
testcase_05 AC 15 ms
7,736 KB
testcase_06 AC 16 ms
8,396 KB
testcase_07 AC 21 ms
8,688 KB
testcase_08 AC 33 ms
8,832 KB
testcase_09 AC 47 ms
9,236 KB
testcase_10 AC 104 ms
10,340 KB
testcase_11 AC 116 ms
10,788 KB
testcase_12 AC 123 ms
10,616 KB
testcase_13 AC 124 ms
10,668 KB
testcase_14 AC 124 ms
11,004 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())

ans = ''
L = [0]*N

for i in range(N):
    L[(i*2)%N] = str(i+1)

for i in range(N):
    ans += ' '.join(L[i:]+L[:i]) + '\n'

print(ans[:-1])
0