結果

問題 No.1169 Row and Column and Diagonal
ユーザー chineristACchineristAC
提出日時 2020-08-14 21:25:42
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 86 ms / 2,000 ms
コード長 178 bytes
コンパイル時間 138 ms
コンパイル使用メモリ 82,336 KB
実行使用メモリ 78,208 KB
最終ジャッジ日時 2024-04-18 20:32:13
合計ジャッジ時間 1,953 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 38 ms
51,968 KB
testcase_01 AC 39 ms
51,968 KB
testcase_02 AC 36 ms
52,224 KB
testcase_03 AC 36 ms
51,840 KB
testcase_04 AC 37 ms
51,584 KB
testcase_05 AC 38 ms
52,000 KB
testcase_06 AC 52 ms
66,176 KB
testcase_07 AC 57 ms
74,240 KB
testcase_08 AC 63 ms
76,544 KB
testcase_09 AC 68 ms
76,908 KB
testcase_10 AC 79 ms
77,932 KB
testcase_11 AC 80 ms
78,076 KB
testcase_12 AC 79 ms
78,164 KB
testcase_13 AC 79 ms
78,208 KB
testcase_14 AC 86 ms
78,080 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N=int(input())
res=[[-1 for j in range(N)] for i in range(N)]

for i in range(N):
    for j in range(N):
        res[(i+j)%N][(i-j)%N]=i+1

for i in range(N):
    print(*res[i])
0