結果
問題 | No.1528 Not 1 |
ユーザー |
|
提出日時 | 2021-06-04 20:17:23 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 544 bytes |
コンパイル時間 | 437 ms |
コンパイル使用メモリ | 81,848 KB |
実行使用メモリ | 69,760 KB |
最終ジャッジ日時 | 2024-11-19 08:29:38 |
合計ジャッジ時間 | 3,730 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 1 |
other | AC * 14 WA * 5 |
ソースコード
n = int(input())a = []if n%2 == 0:for i in range(1,n//2 + 1):a.append(str(2*i))print(" ".join(a))elif n == 1:print(1)elif n == 3 or n == 5:print(-1)else:k = n - 1while k%2 == 0:k//=2if k == 1:a.append("3")a.append("6")for i in range(1,n//2 + 1):if i != 3:a.append(str(2*i))print(" ".join(a))else:for i in range(1,n//2 + 1):a.append(str(2*i))a.append(str(n))print(" ".join(a))