結果

問題 No.1528 Not 1
ユーザー keijakkeijak
提出日時 2021-06-04 20:22:04
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 210 bytes
コンパイル時間 105 ms
コンパイル使用メモリ 12,800 KB
実行使用メモリ 16,456 KB
最終ジャッジ日時 2024-04-29 23:43:00
合計ジャッジ時間 3,163 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 77 ms
14,900 KB
testcase_02 AC 42 ms
12,160 KB
testcase_03 AC 54 ms
12,672 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 58 ms
13,348 KB
testcase_07 AC 76 ms
15,028 KB
testcase_08 WA -
testcase_09 AC 37 ms
11,648 KB
testcase_10 AC 49 ms
12,928 KB
testcase_11 AC 26 ms
10,752 KB
testcase_12 AC 26 ms
10,752 KB
testcase_13 AC 28 ms
10,752 KB
testcase_14 WA -
testcase_15 AC 28 ms
10,880 KB
testcase_16 AC 28 ms
10,624 KB
testcase_17 AC 25 ms
10,752 KB
testcase_18 AC 79 ms
15,488 KB
testcase_19 WA -
権限があれば一括ダウンロードができます

ソースコード

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 n != 6]
    print(*ans)
0