結果

問題 No.1528 Not 1
ユーザー keijakkeijak
提出日時 2021-06-04 20:24:09
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 64 ms / 2,000 ms
コード長 210 bytes
コンパイル時間 129 ms
コンパイル使用メモリ 10,592 KB
実行使用メモリ 13,856 KB
最終ジャッジ日時 2023-08-12 09:23:48
合計ジャッジ時間 2,584 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,784 KB
testcase_01 AC 56 ms
12,212 KB
testcase_02 AC 29 ms
9,436 KB
testcase_03 AC 34 ms
10,016 KB
testcase_04 AC 55 ms
12,796 KB
testcase_05 AC 22 ms
8,936 KB
testcase_06 AC 41 ms
10,716 KB
testcase_07 AC 57 ms
12,484 KB
testcase_08 AC 35 ms
10,484 KB
testcase_09 AC 24 ms
9,044 KB
testcase_10 AC 35 ms
10,296 KB
testcase_11 AC 16 ms
7,868 KB
testcase_12 AC 15 ms
7,876 KB
testcase_13 AC 15 ms
7,840 KB
testcase_14 AC 16 ms
7,760 KB
testcase_15 AC 15 ms
7,872 KB
testcase_16 AC 15 ms
7,760 KB
testcase_17 AC 15 ms
7,852 KB
testcase_18 AC 61 ms
13,096 KB
testcase_19 AC 64 ms
13,856 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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