結果

問題 No.1528 Not 1
ユーザー 👑 KazunKazun
提出日時 2021-06-04 20:06:31
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 98 ms / 2,000 ms
コード長 299 bytes
コンパイル時間 392 ms
コンパイル使用メモリ 87,280 KB
実行使用メモリ 82,628 KB
最終ジャッジ日時 2023-08-12 08:37:52
合計ジャッジ時間 3,986 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 73 ms
71,360 KB
testcase_01 AC 95 ms
80,940 KB
testcase_02 AC 85 ms
77,460 KB
testcase_03 AC 86 ms
77,472 KB
testcase_04 AC 98 ms
81,516 KB
testcase_05 AC 82 ms
76,504 KB
testcase_06 AC 88 ms
78,116 KB
testcase_07 AC 97 ms
81,136 KB
testcase_08 AC 87 ms
78,104 KB
testcase_09 AC 83 ms
77,132 KB
testcase_10 AC 87 ms
77,940 KB
testcase_11 AC 73 ms
71,540 KB
testcase_12 AC 74 ms
71,312 KB
testcase_13 AC 73 ms
71,232 KB
testcase_14 AC 74 ms
71,100 KB
testcase_15 AC 73 ms
71,376 KB
testcase_16 AC 73 ms
71,388 KB
testcase_17 AC 74 ms
71,408 KB
testcase_18 AC 97 ms
81,592 KB
testcase_19 AC 97 ms
82,628 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N=int(input())

if N%2==0:
    print(*range(2,N+1,2))
elif N==1:
    print(1)
elif N==3:
    print(-1)
elif N==5:
    print(-1)
elif N==7:
    print(4,2,6,3)
elif N==9:
    print(4,2,6,9,3)
elif N==11:
    print(10,4,2,6,9,3)
else:
    X=list(range(2,N+1,2))
    del X[2]
    X=[9,6]+X
    print(*X)
0