結果

問題 No.1528 Not 1
ユーザー gorugo30gorugo30
提出日時 2021-06-04 20:14:04
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 249 bytes
コンパイル時間 311 ms
コンパイル使用メモリ 82,176 KB
実行使用メモリ 85,376 KB
最終ジャッジ日時 2024-04-29 23:20:12
合計ジャッジ時間 3,124 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 40 ms
51,712 KB
testcase_01 AC 76 ms
80,000 KB
testcase_02 AC 59 ms
67,200 KB
testcase_03 AC 62 ms
69,760 KB
testcase_04 AC 80 ms
84,224 KB
testcase_05 AC 56 ms
64,640 KB
testcase_06 AC 65 ms
74,240 KB
testcase_07 AC 76 ms
79,744 KB
testcase_08 AC 64 ms
73,344 KB
testcase_09 AC 55 ms
64,768 KB
testcase_10 AC 60 ms
71,424 KB
testcase_11 WA -
testcase_12 AC 39 ms
51,456 KB
testcase_13 AC 39 ms
52,096 KB
testcase_14 AC 39 ms
51,712 KB
testcase_15 AC 39 ms
51,712 KB
testcase_16 AC 40 ms
51,712 KB
testcase_17 AC 42 ms
51,968 KB
testcase_18 AC 74 ms
80,384 KB
testcase_19 AC 79 ms
85,376 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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