結果

問題 No.1169 Row and Column and Diagonal
ユーザー rlangevinrlangevin
提出日時 2023-01-02 12:59:44
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 119 ms / 2,000 ms
コード長 184 bytes
コンパイル時間 2,161 ms
コンパイル使用メモリ 86,776 KB
実行使用メモリ 77,360 KB
最終ジャッジ日時 2023-08-17 23:27:02
合計ジャッジ時間 3,603 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
71,088 KB
testcase_01 AC 71 ms
71,012 KB
testcase_02 AC 72 ms
71,376 KB
testcase_03 AC 71 ms
71,212 KB
testcase_04 AC 71 ms
71,144 KB
testcase_05 AC 72 ms
71,104 KB
testcase_06 AC 90 ms
76,528 KB
testcase_07 AC 96 ms
77,244 KB
testcase_08 AC 100 ms
77,192 KB
testcase_09 AC 105 ms
76,996 KB
testcase_10 AC 112 ms
77,208 KB
testcase_11 AC 114 ms
77,132 KB
testcase_12 AC 116 ms
77,088 KB
testcase_13 AC 119 ms
77,360 KB
testcase_14 AC 119 ms
77,332 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def f(x):
    if x == 0:
        return N
    return x

N = int(input())
for i in range(N):
    L = [(2 * (i + 1) - j)%N for j in range(1, N + 1)]
    L = list(map(f, L))
    print(*L)
0