結果

問題 No.1169 Row and Column and Diagonal
ユーザー ion0002ion0002
提出日時 2020-08-15 13:36:18
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
AC  
実行時間 59 ms / 2,000 ms
コード長 137 bytes
コンパイル時間 631 ms
コンパイル使用メモリ 10,656 KB
実行使用メモリ 7,912 KB
最終ジャッジ日時 2023-08-01 01:24:19
合計ジャッジ時間 2,289 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,852 KB
testcase_01 AC 15 ms
7,788 KB
testcase_02 AC 15 ms
7,908 KB
testcase_03 AC 15 ms
7,820 KB
testcase_04 AC 15 ms
7,844 KB
testcase_05 AC 15 ms
7,852 KB
testcase_06 AC 18 ms
7,872 KB
testcase_07 AC 24 ms
7,868 KB
testcase_08 AC 29 ms
7,872 KB
testcase_09 AC 36 ms
7,732 KB
testcase_10 AC 53 ms
7,820 KB
testcase_11 AC 56 ms
7,804 KB
testcase_12 AC 58 ms
7,904 KB
testcase_13 AC 58 ms
7,808 KB
testcase_14 AC 59 ms
7,912 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n=int(input())
d=[i for i in range(1,n+1)]
l=0
for i in range(n):
  ans=d[l::-1]+d[n-1:l:-1]
  print(' '.join(map(str, ans)))
  l=(l+2)%n
0