結果
問題 |
No.1528 Not 1
|
ユーザー |
![]() |
提出日時 | 2021-06-05 09:59:56 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 461 bytes |
コンパイル時間 | 217 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 17,920 KB |
最終ジャッジ日時 | 2024-11-21 06:03:55 |
合計ジャッジ時間 | 3,094 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 18 WA * 1 |
ソースコード
n = int(input()) if n%2 == 0: ans = [] for i in range(1,n//2+1): ans.append(str(2*i)) print(*ans) elif n <= 5: print(-1) else: p = n-1 while p%2 == 0: p //= 2 if p != 1: ans = [] for i in range(1,n//2+1): ans.append(str(2*i)) ans.append(p) else: ans = [3,6] for i in range(1,n//2+1): if i != 3: ans.append(str(2*i)) print(*ans)