結果
| 問題 |
No.1528 Not 1
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-08-07 23:28:06 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 273 bytes |
| コンパイル時間 | 191 ms |
| コンパイル使用メモリ | 82,176 KB |
| 実行使用メモリ | 69,376 KB |
| 最終ジャッジ日時 | 2024-09-18 19:38:51 |
| 合計ジャッジ時間 | 2,752 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 18 WA * 1 |
ソースコード
N=int(input())
if N==1:
print(1)
elif N==2 or 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))