結果

問題 No.1528 Not 1
ユーザー hell_walkerhell_walker
提出日時 2021-06-04 20:25:34
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 59 ms / 2,000 ms
コード長 170 bytes
コンパイル時間 107 ms
コンパイル使用メモリ 10,732 KB
実行使用メモリ 13,052 KB
最終ジャッジ日時 2023-08-12 09:24:56
合計ジャッジ時間 2,491 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 17 ms
8,088 KB
testcase_01 AC 53 ms
12,396 KB
testcase_02 AC 28 ms
9,560 KB
testcase_03 AC 33 ms
10,004 KB
testcase_04 AC 52 ms
12,304 KB
testcase_05 AC 21 ms
8,928 KB
testcase_06 AC 39 ms
11,108 KB
testcase_07 AC 54 ms
12,496 KB
testcase_08 AC 33 ms
10,108 KB
testcase_09 AC 23 ms
9,220 KB
testcase_10 AC 34 ms
10,172 KB
testcase_11 AC 15 ms
7,972 KB
testcase_12 AC 15 ms
7,936 KB
testcase_13 AC 16 ms
7,932 KB
testcase_14 AC 15 ms
7,852 KB
testcase_15 AC 15 ms
7,892 KB
testcase_16 AC 15 ms
7,900 KB
testcase_17 AC 15 ms
7,940 KB
testcase_18 AC 59 ms
13,052 KB
testcase_19 AC 58 ms
12,860 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import math
n=int(input())
if n%2==0:
    print(*list(range(2,n+1,2)))
elif n>=6:
    print(*([3,6,2,4]+list(range(8,n+1,2))))
elif n==1:
    print(1)
else:
    print(-1)
0