結果
| 問題 |
No.1528 Not 1
|
| コンテスト | |
| ユーザー |
hiraku
|
| 提出日時 | 2021-06-04 20:26:40 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 101 ms / 2,000 ms |
| コード長 | 293 bytes |
| コンパイル時間 | 392 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 16,128 KB |
| 最終ジャッジ日時 | 2024-11-19 09:01:55 |
| 合計ジャッジ時間 | 2,885 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 19 |
ソースコード
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])
hiraku