結果

問題 No.1528 Not 1
ユーザー Akijin_007
提出日時 2023-05-11 20:37:31
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 67 ms / 2,000 ms
コード長 272 bytes
コンパイル時間 159 ms
コンパイル使用メモリ 82,312 KB
実行使用メモリ 80,904 KB
最終ジャッジ日時 2024-11-27 17:03:58
合計ジャッジ時間 3,141 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 19
権限があれば一括ダウンロードができます

ソースコード

diff #

#int(input())
#map(int, input().split())
#list(map(int, input().split()))

N = int(input())

if N == 3 or N == 5:
    print(-1)
elif N == 1:
    print(1)
elif N % 2 == 0:
    print(*list(range(2, N+1, 2)))
else:
    a = [3, 6, 2, 4] + list(range(8, N, 2))
    print(*a)


0