結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 76 ms
79,616 KB
testcase_02 AC 60 ms
67,328 KB
testcase_03 AC 64 ms
69,760 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 67 ms
74,368 KB
testcase_07 AC 78 ms
80,000 KB
testcase_08 WA -
testcase_09 AC 57 ms
65,152 KB
testcase_10 AC 64 ms
71,168 KB
testcase_11 WA -
testcase_12 AC 42 ms
51,584 KB
testcase_13 AC 40 ms
51,456 KB
testcase_14 WA -
testcase_15 AC 40 ms
51,456 KB
testcase_16 AC 41 ms
51,712 KB
testcase_17 AC 41 ms
51,712 KB
testcase_18 AC 80 ms
80,768 KB
testcase_19 WA -
権限があれば一括ダウンロードができます

ソースコード

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[:3])
0