結果

問題 No.1528 Not 1
ユーザー brthyyjpbrthyyjp
提出日時 2021-06-06 16:17:20
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 327 bytes
コンパイル時間 455 ms
コンパイル使用メモリ 87,220 KB
実行使用メモリ 87,592 KB
最終ジャッジ日時 2023-08-14 22:04:50
合計ジャッジ時間 4,343 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 69 ms
71,068 KB
testcase_01 AC 116 ms
86,000 KB
testcase_02 AC 84 ms
78,640 KB
testcase_03 AC 84 ms
79,292 KB
testcase_04 AC 96 ms
85,944 KB
testcase_05 AC 79 ms
76,616 KB
testcase_06 AC 90 ms
82,304 KB
testcase_07 AC 98 ms
86,320 KB
testcase_08 AC 87 ms
79,800 KB
testcase_09 AC 82 ms
77,084 KB
testcase_10 AC 85 ms
79,932 KB
testcase_11 WA -
testcase_12 AC 69 ms
71,428 KB
testcase_13 AC 71 ms
71,320 KB
testcase_14 AC 69 ms
71,300 KB
testcase_15 AC 70 ms
71,180 KB
testcase_16 AC 69 ms
71,256 KB
testcase_17 AC 81 ms
71,352 KB
testcase_18 AC 98 ms
87,584 KB
testcase_19 AC 101 ms
87,592 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
if n == 1:
    print(-1)
    exit()
A = []
x = -1
for i in range(1, n+1):
    if i%2 == 0:
        A.append(i)
        if (i//2)%2 == 1:
            x = i//2
#print(A)
if x != -1:
    A.remove(2*x)
    A.append(2*x)
    A.append(x)
A = A[0:(n+1)//2]
if A[-1] == 1:
    print(-1)
    exit()
else:
    print(*A)
0