結果

問題 No.1528 Not 1
ユーザー kohei2019kohei2019
提出日時 2022-06-03 00:50:06
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 74 ms / 2,000 ms
コード長 277 bytes
コンパイル時間 288 ms
コンパイル使用メモリ 81,736 KB
実行使用メモリ 85,524 KB
最終ジャッジ日時 2023-10-21 01:24:22
合計ジャッジ時間 4,273 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 38 ms
53,504 KB
testcase_01 AC 65 ms
79,404 KB
testcase_02 AC 52 ms
67,224 KB
testcase_03 AC 54 ms
69,592 KB
testcase_04 AC 74 ms
83,940 KB
testcase_05 AC 50 ms
64,424 KB
testcase_06 AC 57 ms
74,256 KB
testcase_07 AC 66 ms
79,404 KB
testcase_08 AC 56 ms
73,568 KB
testcase_09 AC 51 ms
64,848 KB
testcase_10 AC 55 ms
71,804 KB
testcase_11 AC 37 ms
53,504 KB
testcase_12 AC 38 ms
53,504 KB
testcase_13 AC 37 ms
53,504 KB
testcase_14 AC 38 ms
53,504 KB
testcase_15 AC 38 ms
53,504 KB
testcase_16 AC 38 ms
53,504 KB
testcase_17 AC 38 ms
53,504 KB
testcase_18 AC 68 ms
79,932 KB
testcase_19 AC 73 ms
85,524 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
if N == 1:
    print(1)
    exit()
if N % 2 == 0:
    print(*[(i+1)*2 for i in range(N//2)])
else:
    if N == 3 or N == 5:
        print(-1)
    else:
        ll = [3,6,2,4]
        for j in range(-(-N//2)-4):
            ll.append(2*(j+4))
        print(*ll)
0