結果

問題 No.1528 Not 1
ユーザー rin204
提出日時 2021-12-13 01:17:30
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 236 bytes
コンパイル時間 163 ms
コンパイル使用メモリ 82,224 KB
実行使用メモリ 85,884 KB
最終ジャッジ日時 2024-07-21 14:52:47
合計ジャッジ時間 3,126 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 18 WA * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
if n in (3, 5):
    print(-1)
elif n % 2 == 0:
    ans = list(range(2, n + 1, 2))
    print(*ans)
else:
    ans = [3, 6]
    for i in range(2, n + 1, 2):
        if i != 6:
            ans.append(i)
    print(*ans)
    
0