結果
| 問題 |
No.1528 Not 1
|
| コンテスト | |
| ユーザー |
hiraku
|
| 提出日時 | 2021-06-04 20:22:10 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 297 bytes |
| コンパイル時間 | 78 ms |
| コンパイル使用メモリ | 12,800 KB |
| 実行使用メモリ | 16,256 KB |
| 最終ジャッジ日時 | 2024-11-19 08:50:00 |
| 合計ジャッジ時間 | 3,190 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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