結果

問題 No.1528 Not 1
ユーザー trineutrontrineutron
提出日時 2021-06-04 20:06:00
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 64 ms / 2,000 ms
コード長 208 bytes
コンパイル時間 107 ms
コンパイル使用メモリ 10,716 KB
実行使用メモリ 12,912 KB
最終ジャッジ日時 2023-08-12 08:37:03
合計ジャッジ時間 2,703 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 17 ms
7,840 KB
testcase_01 AC 59 ms
12,284 KB
testcase_02 AC 29 ms
9,416 KB
testcase_03 AC 34 ms
10,052 KB
testcase_04 AC 57 ms
12,072 KB
testcase_05 AC 21 ms
8,880 KB
testcase_06 AC 43 ms
10,780 KB
testcase_07 AC 58 ms
12,276 KB
testcase_08 AC 35 ms
9,936 KB
testcase_09 AC 25 ms
9,048 KB
testcase_10 AC 36 ms
10,368 KB
testcase_11 AC 15 ms
7,796 KB
testcase_12 AC 15 ms
7,868 KB
testcase_13 AC 15 ms
7,880 KB
testcase_14 AC 15 ms
7,980 KB
testcase_15 AC 15 ms
7,804 KB
testcase_16 AC 15 ms
7,844 KB
testcase_17 AC 16 ms
7,984 KB
testcase_18 AC 63 ms
12,912 KB
testcase_19 AC 64 ms
12,912 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
if n % 2 == 0:
    print(*[2 * i for i in range(1, n // 2 + 1)])
elif n == 1:
    print(1)
elif n <= 5:
    print(-1)
else:
    print(*([3, 6, 2, 4] + [2 * i for i in range(4, n // 2 + 1)]))
0