結果

問題 No.1528 Not 1
ユーザー 👑 rin204rin204
提出日時 2021-12-13 01:17:30
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 236 bytes
コンパイル時間 344 ms
コンパイル使用メモリ 87,024 KB
実行使用メモリ 86,868 KB
最終ジャッジ日時 2023-09-28 20:05:18
合計ジャッジ時間 5,373 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 77 ms
71,364 KB
testcase_01 AC 96 ms
80,840 KB
testcase_02 AC 89 ms
77,428 KB
testcase_03 AC 88 ms
77,596 KB
testcase_04 AC 103 ms
84,624 KB
testcase_05 AC 86 ms
76,544 KB
testcase_06 AC 89 ms
78,432 KB
testcase_07 AC 97 ms
80,884 KB
testcase_08 AC 92 ms
79,280 KB
testcase_09 AC 87 ms
77,124 KB
testcase_10 AC 88 ms
77,920 KB
testcase_11 WA -
testcase_12 AC 75 ms
71,284 KB
testcase_13 AC 75 ms
71,224 KB
testcase_14 AC 76 ms
71,360 KB
testcase_15 AC 75 ms
71,148 KB
testcase_16 AC 75 ms
71,356 KB
testcase_17 AC 72 ms
71,160 KB
testcase_18 AC 97 ms
81,512 KB
testcase_19 AC 103 ms
86,868 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
if 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