結果

問題 No.1528 Not 1
ユーザー lloyzlloyz
提出日時 2021-12-16 22:03:19
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 252 bytes
コンパイル時間 574 ms
コンパイル使用メモリ 10,736 KB
実行使用メモリ 13,732 KB
最終ジャッジ日時 2023-10-11 21:33:00
合計ジャッジ時間 4,660 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,836 KB
testcase_01 AC 62 ms
12,872 KB
testcase_02 AC 31 ms
9,956 KB
testcase_03 AC 35 ms
10,340 KB
testcase_04 AC 59 ms
12,892 KB
testcase_05 WA -
testcase_06 AC 44 ms
11,520 KB
testcase_07 AC 61 ms
13,232 KB
testcase_08 WA -
testcase_09 AC 25 ms
9,100 KB
testcase_10 AC 38 ms
10,628 KB
testcase_11 AC 15 ms
8,068 KB
testcase_12 AC 15 ms
8,104 KB
testcase_13 AC 16 ms
8,192 KB
testcase_14 AC 15 ms
7,928 KB
testcase_15 AC 15 ms
7,812 KB
testcase_16 AC 15 ms
7,760 KB
testcase_17 AC 15 ms
7,832 KB
testcase_18 AC 66 ms
13,732 KB
testcase_19 AC 67 ms
13,704 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
if n == 1:
    print(1)
    exit()
num = (n + 1) // 2
ans = [(i + 1) * 2 for i in range(num)]
if ans[-1] > n:
    ans[-1] = ans[-2] // 2
    if ans[-1] % 2 == 0 or ans[-1] == 1:
        print(-1)
        exit()
print(*ans)
0