結果

問題 No.1528 Not 1
ユーザー 👑 H20H20
提出日時 2021-06-04 21:14:20
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 258 bytes
コンパイル時間 2,107 ms
コンパイル使用メモリ 86,660 KB
実行使用メモリ 87,112 KB
最終ジャッジ日時 2023-08-12 11:10:30
合計ジャッジ時間 4,549 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,064 KB
testcase_01 AC 103 ms
85,280 KB
testcase_02 AC 84 ms
77,744 KB
testcase_03 AC 85 ms
79,164 KB
testcase_04 AC 96 ms
84,712 KB
testcase_05 AC 81 ms
76,488 KB
testcase_06 AC 92 ms
81,820 KB
testcase_07 AC 98 ms
85,760 KB
testcase_08 AC 86 ms
79,052 KB
testcase_09 AC 84 ms
76,856 KB
testcase_10 AC 86 ms
79,608 KB
testcase_11 AC 71 ms
71,208 KB
testcase_12 AC 71 ms
71,224 KB
testcase_13 AC 71 ms
71,204 KB
testcase_14 AC 70 ms
71,284 KB
testcase_15 WA -
testcase_16 AC 70 ms
71,084 KB
testcase_17 AC 70 ms
71,252 KB
testcase_18 AC 105 ms
87,112 KB
testcase_19 AC 98 ms
87,100 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
if N==1:
    print(1)
elif N==2 or N==3 or N==5:
    print(-1)
elif N==4:
    print(2,4)
elif N==6:
    print(2,4,6)
else:
    ANS = [3,6]
    for i in range(2,N,2):
        if i==6:
            continue
        ANS.append(i)
    print(*ANS)
0