結果
| 問題 |
No.1528 Not 1
|
| コンテスト | |
| ユーザー |
ntuda
|
| 提出日時 | 2024-11-28 22:05:26 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 79 ms / 2,000 ms |
| コード長 | 335 bytes |
| コンパイル時間 | 304 ms |
| コンパイル使用メモリ | 81,920 KB |
| 実行使用メモリ | 86,272 KB |
| 最終ジャッジ日時 | 2024-11-28 22:05:31 |
| 合計ジャッジ時間 | 3,012 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 19 |
ソースコード
N = int(input())
ans0 = ["", 1,2,-1,"2 4",-1]
if N <= 5:
print(ans0[N])
exit()
N2 = -(-N//2)
if N % 2 == 0:
print(*[2*i for i in range(1,N2+1)])
else:
tmp = []
j = 1
cnt = 0
while cnt < N2 - 2:
if 2 * j != 6:
tmp.append(2*j)
cnt += 1
j += 1
print(*([3,6] + tmp))
ntuda