結果

問題 No.1528 Not 1
ユーザー aaaaaaaaaa2230aaaaaaaaaa2230
提出日時 2021-06-04 20:14:56
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 99 ms / 2,000 ms
コード長 282 bytes
コンパイル時間 283 ms
コンパイル使用メモリ 87,108 KB
実行使用メモリ 87,012 KB
最終ジャッジ日時 2023-08-12 08:55:41
合計ジャッジ時間 3,834 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,400 KB
testcase_01 AC 92 ms
80,876 KB
testcase_02 AC 84 ms
77,384 KB
testcase_03 AC 85 ms
77,276 KB
testcase_04 AC 97 ms
84,636 KB
testcase_05 AC 82 ms
76,484 KB
testcase_06 AC 85 ms
78,196 KB
testcase_07 AC 93 ms
81,176 KB
testcase_08 AC 87 ms
79,212 KB
testcase_09 AC 82 ms
76,716 KB
testcase_10 AC 85 ms
77,820 KB
testcase_11 AC 72 ms
71,260 KB
testcase_12 AC 71 ms
71,300 KB
testcase_13 AC 71 ms
71,112 KB
testcase_14 AC 70 ms
71,424 KB
testcase_15 AC 71 ms
71,184 KB
testcase_16 AC 72 ms
71,060 KB
testcase_17 AC 70 ms
71,108 KB
testcase_18 AC 95 ms
81,684 KB
testcase_19 AC 99 ms
87,012 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
if n == 1:
    print(1)
    exit()
if n%2 == 0:
    ans = [i*2 for i in range(1,n//2+1)]
else:
    if n <= 5:
        print(-1)
        exit()
    ans = [3,6]
    for i in range(1,n//2+1):
        if i == 3:
            continue
        ans.append(i*2)
print(*ans)
0