結果

問題 No.1528 Not 1
ユーザー 👑 rin204rin204
提出日時 2021-12-13 01:18:05
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 104 ms / 2,000 ms
コード長 262 bytes
コンパイル時間 622 ms
コンパイル使用メモリ 87,140 KB
実行使用メモリ 87,064 KB
最終ジャッジ日時 2023-09-28 20:05:58
合計ジャッジ時間 4,328 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 73 ms
71,352 KB
testcase_01 AC 100 ms
80,940 KB
testcase_02 AC 85 ms
77,304 KB
testcase_03 AC 85 ms
77,852 KB
testcase_04 AC 97 ms
84,940 KB
testcase_05 AC 83 ms
76,396 KB
testcase_06 AC 85 ms
78,400 KB
testcase_07 AC 94 ms
81,248 KB
testcase_08 AC 87 ms
79,300 KB
testcase_09 AC 84 ms
77,288 KB
testcase_10 AC 87 ms
77,996 KB
testcase_11 AC 72 ms
71,196 KB
testcase_12 AC 73 ms
71,288 KB
testcase_13 AC 71 ms
71,248 KB
testcase_14 AC 74 ms
71,412 KB
testcase_15 AC 72 ms
71,352 KB
testcase_16 AC 73 ms
71,408 KB
testcase_17 AC 74 ms
71,444 KB
testcase_18 AC 98 ms
81,772 KB
testcase_19 AC 104 ms
87,064 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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