結果

問題 No.1528 Not 1
ユーザー ああいいああいい
提出日時 2021-12-04 09:58:32
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 93 ms / 2,000 ms
コード長 307 bytes
コンパイル時間 108 ms
コンパイル使用メモリ 10,712 KB
実行使用メモリ 8,332 KB
最終ジャッジ日時 2023-09-20 19:52:03
合計ジャッジ時間 3,881 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 18 ms
7,744 KB
testcase_01 AC 69 ms
8,276 KB
testcase_02 AC 34 ms
8,232 KB
testcase_03 AC 40 ms
8,244 KB
testcase_04 AC 80 ms
8,184 KB
testcase_05 AC 26 ms
8,332 KB
testcase_06 AC 50 ms
8,200 KB
testcase_07 AC 71 ms
8,288 KB
testcase_08 AC 49 ms
8,264 KB
testcase_09 AC 27 ms
8,208 KB
testcase_10 AC 43 ms
8,240 KB
testcase_11 AC 16 ms
8,048 KB
testcase_12 AC 16 ms
8,168 KB
testcase_13 AC 16 ms
8,096 KB
testcase_14 AC 16 ms
7,768 KB
testcase_15 AC 16 ms
8,120 KB
testcase_16 AC 16 ms
8,160 KB
testcase_17 AC 16 ms
8,208 KB
testcase_18 AC 77 ms
8,312 KB
testcase_19 AC 93 ms
8,312 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys

N = int(input())
if N == 1:
    print(1)
    exit()
if N == 3 or N == 5:
    print(-1)
    exit()
if N % 2 == 0:
    for i in range(2,N+1,2):
        print(i,end=' ')
    print()
    exit()
n = N // 2 + 1
i = 0
for _ in range(n - 4):
    print(N - (2 * i + 1),end=' ')
    i += 1
print(2,4,6,3)
0