結果
問題 |
No.1528 Not 1
|
ユーザー |
|
提出日時 | 2021-08-07 23:29:04 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 54 ms / 2,000 ms |
コード長 | 273 bytes |
コンパイル時間 | 305 ms |
コンパイル使用メモリ | 81,920 KB |
実行使用メモリ | 69,504 KB |
最終ジャッジ日時 | 2024-09-18 19:39:10 |
合計ジャッジ時間 | 2,730 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 19 |
ソースコード
N=int(input()) if N==1 or N==2: print(1) elif N==3 or N==5: print(-1) elif N%2==0: L=[str(2*i) for i in range(1,int(N/2)+1)] print(" ".join(L)) else: L=["3","6","2","4"] for i in range(4,int(N/2)+1): L.append(str(2*i)) print(" ".join(L))