結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 38 ms
51,712 KB
testcase_01 AC 77 ms
80,000 KB
testcase_02 AC 56 ms
67,456 KB
testcase_03 AC 59 ms
70,016 KB
testcase_04 AC 75 ms
84,096 KB
testcase_05 AC 53 ms
64,768 KB
testcase_06 AC 66 ms
73,856 KB
testcase_07 AC 77 ms
79,872 KB
testcase_08 AC 66 ms
73,088 KB
testcase_09 AC 57 ms
65,024 KB
testcase_10 AC 64 ms
71,168 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 AC 40 ms
51,840 KB
testcase_15 AC 41 ms
51,840 KB
testcase_16 AC 41 ms
51,840 KB
testcase_17 AC 41 ms
51,712 KB
testcase_18 AC 78 ms
80,640 KB
testcase_19 AC 82 ms
86,016 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)
    L = (N + 1) // 2
    A = [3, 6, 2, 4]
    while len(A) < L:
        A.append(2 * (len(A)))
    print(*A)
0