結果

問題 No.1169 Row and Column and Diagonal
ユーザー GrayCoderGrayCoder
提出日時 2020-08-14 22:04:47
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
AC  
実行時間 111 ms / 2,000 ms
コード長 245 bytes
コンパイル時間 646 ms
コンパイル使用メモリ 10,584 KB
実行使用メモリ 8,788 KB
最終ジャッジ日時 2023-07-31 22:22:26
合計ジャッジ時間 2,939 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 18 ms
8,556 KB
testcase_01 AC 18 ms
8,504 KB
testcase_02 AC 18 ms
8,584 KB
testcase_03 AC 18 ms
8,500 KB
testcase_04 AC 18 ms
8,436 KB
testcase_05 AC 18 ms
8,480 KB
testcase_06 AC 25 ms
8,708 KB
testcase_07 AC 36 ms
8,748 KB
testcase_08 AC 46 ms
8,660 KB
testcase_09 AC 61 ms
8,780 KB
testcase_10 AC 97 ms
8,788 KB
testcase_11 AC 104 ms
8,744 KB
testcase_12 AC 109 ms
8,728 KB
testcase_13 AC 111 ms
8,752 KB
testcase_14 AC 110 ms
8,712 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import deque
from sys import stdin


def main():
    input = lambda: stdin.readline()[:-1]
    N = int(input())

    a = deque(range(N, 0, -1))
    a.rotate()
    for _ in [0] * N:
        print(*a)
        a.rotate(2)


main()
0