結果

問題 No.1528 Not 1
ユーザー Eki1009Eki1009
提出日時 2021-06-04 20:07:54
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 102 ms / 2,000 ms
コード長 226 bytes
コンパイル時間 885 ms
コンパイル使用メモリ 86,816 KB
実行使用メモリ 86,984 KB
最終ジャッジ日時 2023-08-12 08:42:35
合計ジャッジ時間 4,163 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 74 ms
71,340 KB
testcase_01 AC 102 ms
85,648 KB
testcase_02 AC 86 ms
78,264 KB
testcase_03 AC 89 ms
79,080 KB
testcase_04 AC 101 ms
85,412 KB
testcase_05 AC 85 ms
76,704 KB
testcase_06 AC 93 ms
82,008 KB
testcase_07 AC 101 ms
85,660 KB
testcase_08 AC 89 ms
79,636 KB
testcase_09 AC 85 ms
77,100 KB
testcase_10 AC 89 ms
79,732 KB
testcase_11 AC 74 ms
71,380 KB
testcase_12 AC 73 ms
71,116 KB
testcase_13 AC 73 ms
71,336 KB
testcase_14 AC 73 ms
71,588 KB
testcase_15 AC 72 ms
71,460 KB
testcase_16 AC 72 ms
71,304 KB
testcase_17 AC 72 ms
71,452 KB
testcase_18 AC 101 ms
86,984 KB
testcase_19 AC 101 ms
86,756 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
if n == 3 or n == 5:
    print(-1)
    exit()
if n <= 2:
    print(1)
    exit()
if n == 4:
    print(2, 4)
    exit()
L = [(i+1)*2 for i in range(n//2) if i != 2]
L.append(6)
if n%2:
    L.append(3)
print(*L)
0