結果

問題 No.1528 Not 1
コンテスト
ユーザー pluto77
提出日時 2021-07-17 11:41:11
言語 Python3
(3.14.3 + numpy 2.4.4 + scipy 1.17.1)
コンパイル:
python3 -mpy_compile _filename_
実行:
python3 _filename_
結果
AC  
実行時間 129 ms / 2,000 ms
+ 75µs
コード長 211 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 291 ms
コンパイル使用メモリ 21,412 KB
実行使用メモリ 20,092 KB
最終ジャッジ日時 2026-08-10 09:45:29
合計ジャッジ時間 4,584 ms
ジャッジサーバーID
(参考情報)
judge1_0 / judge2_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 19
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#yuki1528
n=int(input())
if n==1 or n==2:
 print(1)
elif n==3 or n==5:
 print(-1)
elif n==4:
 print(2,4)
else:
 t=[2,4]
 for i in range(8,n+1,2):
  t.append(i)
 t.append(6)
 if n%2==1:
  t.append(3)
 print(*t)
 
0