結果
問題 |
No.1528 Not 1
|
ユーザー |
👑 |
提出日時 | 2021-12-13 01:18:05 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 72 ms / 2,000 ms |
コード長 | 262 bytes |
コンパイル時間 | 320 ms |
コンパイル使用メモリ | 82,388 KB |
実行使用メモリ | 86,064 KB |
最終ジャッジ日時 | 2024-07-21 14:53:23 |
合計ジャッジ時間 | 2,930 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 19 |
ソースコード
n = int(input()) if n == 1: print(1) elif 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)