結果

問題 No.1528 Not 1
ユーザー KudeKude
提出日時 2021-06-04 20:07:21
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 97 ms / 2,000 ms
コード長 231 bytes
コンパイル時間 351 ms
コンパイル使用メモリ 87,104 KB
実行使用メモリ 82,160 KB
最終ジャッジ日時 2023-08-12 08:41:35
合計ジャッジ時間 3,960 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 74 ms
71,588 KB
testcase_01 AC 93 ms
81,100 KB
testcase_02 AC 86 ms
77,472 KB
testcase_03 AC 85 ms
77,812 KB
testcase_04 AC 94 ms
81,624 KB
testcase_05 AC 84 ms
76,504 KB
testcase_06 AC 88 ms
78,360 KB
testcase_07 AC 95 ms
80,908 KB
testcase_08 AC 85 ms
78,424 KB
testcase_09 AC 83 ms
76,960 KB
testcase_10 AC 85 ms
78,012 KB
testcase_11 AC 71 ms
71,364 KB
testcase_12 AC 72 ms
71,284 KB
testcase_13 AC 71 ms
71,636 KB
testcase_14 AC 71 ms
71,372 KB
testcase_15 AC 71 ms
71,240 KB
testcase_16 AC 72 ms
71,284 KB
testcase_17 AC 71 ms
71,296 KB
testcase_18 AC 97 ms
81,732 KB
testcase_19 AC 97 ms
82,160 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
if n % 2 == 0:
    print(*range(2, n + 1, 2))
elif n == 1:
    print(1)
elif n <= 5:
    print(-1)
else:
    ans = list(range(2, 6, 2)) + list(range(8, n + 1, 2))
    ans.append(6)
    ans.append(3)
    print(*ans)
0