結果

問題 No.1169 Row and Column and Diagonal
ユーザー irumo8202irumo8202
提出日時 2022-01-29 23:26:02
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 107 ms / 2,000 ms
コード長 151 bytes
コンパイル時間 881 ms
コンパイル使用メモリ 87,412 KB
実行使用メモリ 77,560 KB
最終ジャッジ日時 2023-08-30 23:17:31
合計ジャッジ時間 4,562 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
71,344 KB
testcase_01 AC 69 ms
70,920 KB
testcase_02 AC 69 ms
71,160 KB
testcase_03 AC 70 ms
71,160 KB
testcase_04 AC 69 ms
70,896 KB
testcase_05 AC 71 ms
71,008 KB
testcase_06 AC 84 ms
76,208 KB
testcase_07 AC 93 ms
77,560 KB
testcase_08 AC 94 ms
77,144 KB
testcase_09 AC 98 ms
77,096 KB
testcase_10 AC 104 ms
77,328 KB
testcase_11 AC 107 ms
77,192 KB
testcase_12 AC 107 ms
77,056 KB
testcase_13 AC 105 ms
77,400 KB
testcase_14 AC 106 ms
77,140 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())

for i in range(1, N + 1):
    for j in range(1, N + 1):
        v = (2 * i - j) % N
        print(v if v else N, end=" ")
    print()
0