結果

問題 No.1528 Not 1
ユーザー irumo8202
提出日時 2022-02-13 16:55:18
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 91 ms / 2,000 ms
コード長 170 bytes
コンパイル時間 84 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 16,328 KB
最終ジャッジ日時 2024-06-29 05:42:18
合計ジャッジ時間 2,597 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 19
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())

ans = list(range(2, N+1, 2))
if N == 1:
    print(1)
elif N % 2 == 0:
    print(*ans)
elif N >= 7:
    print(3, 6, 2, 4,  *ans[3:])
else:
    print(-1)
0