結果
問題 | No.1528 Not 1 |
ユーザー |
![]() |
提出日時 | 2021-06-04 20:24:09 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 84 ms / 2,000 ms |
コード長 | 210 bytes |
コンパイル時間 | 84 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 16,332 KB |
最終ジャッジ日時 | 2024-11-19 08:54:45 |
合計ジャッジ時間 | 2,360 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 19 |
ソースコード
n = int(input())if n <= 2:print(n)elif n in (3, 5):print(-1)elif n % 2 == 0:print(*[x for x in range(2, n+1, 2)])else:ans = [3, 6] + [x for x in range(2, n, 2) if x != 6]print(*ans)