結果

問題 No.1528 Not 1
ユーザー kohei2019
提出日時 2022-06-03 00:50:06
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 87 ms / 2,000 ms
コード長 277 bytes
コンパイル時間 194 ms
コンパイル使用メモリ 82,408 KB
実行使用メモリ 85,760 KB
最終ジャッジ日時 2024-09-21 02:14:12
合計ジャッジ時間 3,725 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 19
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
if N == 1:
    print(1)
    exit()
if N % 2 == 0:
    print(*[(i+1)*2 for i in range(N//2)])
else:
    if N == 3 or N == 5:
        print(-1)
    else:
        ll = [3,6,2,4]
        for j in range(-(-N//2)-4):
            ll.append(2*(j+4))
        print(*ll)
0