結果

問題 No.1528 Not 1
ユーザー irumo8202irumo8202
提出日時 2022-02-13 16:55:18
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 62 ms / 2,000 ms
コード長 170 bytes
コンパイル時間 90 ms
コンパイル使用メモリ 10,644 KB
実行使用メモリ 13,524 KB
最終ジャッジ日時 2023-09-11 15:35:44
合計ジャッジ時間 2,501 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,764 KB
testcase_01 AC 56 ms
12,788 KB
testcase_02 AC 28 ms
9,672 KB
testcase_03 AC 32 ms
10,132 KB
testcase_04 AC 53 ms
12,748 KB
testcase_05 AC 20 ms
8,992 KB
testcase_06 AC 40 ms
11,108 KB
testcase_07 AC 55 ms
12,996 KB
testcase_08 AC 34 ms
10,296 KB
testcase_09 AC 23 ms
9,068 KB
testcase_10 AC 35 ms
10,736 KB
testcase_11 AC 15 ms
7,720 KB
testcase_12 AC 15 ms
7,720 KB
testcase_13 AC 15 ms
7,824 KB
testcase_14 AC 15 ms
7,864 KB
testcase_15 AC 15 ms
7,792 KB
testcase_16 AC 15 ms
7,924 KB
testcase_17 AC 15 ms
7,724 KB
testcase_18 AC 60 ms
13,524 KB
testcase_19 AC 62 ms
13,512 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())

ans = list(range(2, N+1, 2))
if N == 1:
    print(1)
elif N % 2 == 0:
    print(*ans)
elif N >= 7:
    print(3, 6, 2, 4,  *ans[3:])
else:
    print(-1)
0