結果
| 問題 | 
                            No.1528 Not 1
                             | 
                    
| コンテスト | |
| ユーザー | 
                             brthyyjp
                         | 
                    
| 提出日時 | 2021-06-06 16:18:02 | 
| 言語 | PyPy3  (7.3.15)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 79 ms / 2,000 ms | 
| コード長 | 326 bytes | 
| コンパイル時間 | 199 ms | 
| コンパイル使用メモリ | 82,304 KB | 
| 実行使用メモリ | 86,528 KB | 
| 最終ジャッジ日時 | 2024-11-22 23:06:47 | 
| 合計ジャッジ時間 | 2,965 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge3 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 1 | 
| other | AC * 19 | 
ソースコード
n = int(input())
if n == 1:
    print(1)
    exit()
A = []
x = -1
for i in range(1, n+1):
    if i%2 == 0:
        A.append(i)
        if (i//2)%2 == 1:
            x = i//2
#print(A)
if x != -1:
    A.remove(2*x)
    A.append(2*x)
    A.append(x)
A = A[0:(n+1)//2]
if A[-1] == 1:
    print(-1)
    exit()
else:
    print(*A)
            
            
            
        
            
brthyyjp