結果
| 問題 | No.1528 Not 1 |
| コンテスト | |
| ユーザー |
hiraku
|
| 提出日時 | 2021-06-04 20:22:10 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 297 bytes |
| 記録 | |
| コンパイル時間 | 355 ms |
| コンパイル使用メモリ | 20,828 KB |
| 実行使用メモリ | 19,932 KB |
| 最終ジャッジ日時 | 2026-05-13 16:36:34 |
| 合計ジャッジ時間 | 4,902 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 10 WA * 9 |
ソースコード
n = int(input())
# 偶数並べるだけでOK?
if n <= 2:
print(1)
exit()
if n == 3 or n == 5:
print(-1)
exit()
if n == 4:
print(*[2, 4])
exit()
ans = [3, 6]
for i in range(2, n + 1, 2):
if i != 6:
ans.append(i)
nn = (n - 1) // 2 + 1
print(*ans[:nn + 1])
hiraku