結果
| 問題 |
No.1169 Row and Column and Diagonal
|
| コンテスト | |
| ユーザー |
ion0002
|
| 提出日時 | 2020-08-15 13:36:18 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 85 ms / 2,000 ms |
| コード長 | 137 bytes |
| コンパイル時間 | 240 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 10,752 KB |
| 最終ジャッジ日時 | 2024-10-10 17:49:42 |
| 合計ジャッジ時間 | 1,914 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 13 |
ソースコード
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
ion0002